x = 45.6
y = new BigNumber(x)
x.toFixed()              // '46'
y.toFixed()              // '45.6'
y.toF(0)                 // '46'
x.toFixed(3)             // '45.600'
y.toF(3)                 // '45.600'</pre>



    <h5 id="toP">
      toPrecision<code class='inset'>.toP([significant_figures]) &rArr;
      <i>string</i></code>
    </h5>
    <p>
      <code>significant_figures</code> : <i>number</i> : integer, 1 to 1e+9
      inclusive
    </p>
    <p>
      Returns a string representing the value of this 