title: Display numbers with max 3 digits to appear after the decimal point
body: <p>I have a series of numbers. For example:</p>
  
  <pre><code>3, 3.4567, 4.5, 5.72, 6.12345
  </code></pre>
  
  <p>How can I show original numbers if they are integers or they have no more than 3 digits after the decimal point and show max 3 digits after the decimal point if there are more than 3? Here is what I want:</p>
  
  <pre><code>3, 3.456, 4.5, 5.72, 6.123
  </code></pre>
  
  <p>I used toFixed(), but it makes each number come with 3 digits after the decimal point.</p>
  
  <p>Is there any Javascript method to use to achieve what I want?</p>
  
  <p>--------- update -----------</p>
  
  <p>I used this from the pointer:</p>
  
  <p>Math.round(original*1000)/1000</p>
  
  <p>from the old post. It seems working.</p>