codingtcher.com
Theme Night
Home
Login

Format number to 2 digits javascript

//jquery 2 decimal places
var total = 100.525444
var final_total = total.toFixed(2); // 100.52

Related Code