Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript tofixed

var int = 10;
var float = parseFloat(int).toFixed(2);
console.log(float); // 10.00
 
PREVIOUS NEXT
Tagged: #javascript #tofixed
ADD COMMENT
Topic
Name
9+4 =