Home > Q&A > body text
When using the toPrecision() method, such as var c=Number("0.5") c.toPrecision(1)
The result is 0.5, in which case the length of the number is 2, What's the reason for this?