title: javascript how to convert number 1.0 to string "1.0"?
body: <p>I used to use <code>String</code> function to convert number to string, but I found for the case like 1.0, the result is "1" but I expect to "1.0". I know 1 and 1.0 are essentially the same in Javascript. but how do you usually patch it to support my case?</p>
  
  <p>UPDATE:
  Please don't misunderstand my question that I want to keep the other default behavior of <code>String</code> which means <code>toFixed</code> is not right solution.
  e.g. </p>
  
  <pre><code>1 ==&gt; "1"
  1.0 ==&gt; "1.0"
  1.00 ==&gt; "1.00"
  1.2334 ==&gt; "1.2334"
  </code></pre>