Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript convert to two decimal places

var example = 3.35464464374256  ;
example = parseFloat(example.toFixed(2)) ;  // example == 3.35  
 
PREVIOUS NEXT
Tagged: #javascript #convert #decimal #places
ADD COMMENT
Topic
Name
5+9 =