Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

round till 2 digit in jquery

(10.8).toFixed(2); // "10.80"

var num = 2.4;
alert(num.toFixed(2)); // "2.40"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #digit #jquery
ADD COMMENT
Topic
Name
4+8 =