Javascript how to convert float 2.0 to string '2.0'?
<p>I tried <code>toFixed()</code> but it's not doing what I want.
I want to have a one line code that convert</p>

<pre><code>2.0   --&gt;   '2.0'
2.123 --&gt;   '2.123'
0.05  --&gt;   '0.05'
</code></pre>