'toPrecision()' Example : toPrecision « Javascript Methods « JavaScript Reference
- JavaScript Reference
- Javascript Methods
- toPrecision
'toPrecision()' Example
<html>
<body>
<button onclick="var myNum = new Number(10000); alert(myNum.toPrecision(1));">
to Precision
</button>
</body>
</html>
Related examples in the same category