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