Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript round to 2 decimals

var num = 125465.33695;
console.log(num.toFixed(2)) //125465.33
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #decimals
ADD COMMENT
Topic
Name
2+6 =