Convert a number to a precision : Number : Data Type JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Data Type » Number »

 

Convert a number to a precision



    
<html>
<body>
<button onclick="var myNum = new Number(100); alert(myNum.toPrecision(1));">
Number toPrecision
</button>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Data Type
» Number