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  
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #convert #decimal #places
ADD COMMENT
Topic
Name
8+1 =