title: Javascript toFixed function
body: <p><strong>The expected result of:</strong> </p>
  
  <pre><code>(1.175).toFixed(2) = 1.18 and
  (5.175).toFixed(2) = 5.18
  </code></pre>
  
  <p><strong>But in JS showing:</strong></p>
  
  <pre><code>(1.175).toFixed(2) = 1.18 but 
  *(5.175).toFixed(2) = 5.17*
  </code></pre>
  
  <p>How to rectify the problem?</p>