javascript int to float

100

convert int to float in javascript -

parseFloat("4").toFixed(2)

javascript two character integer -

var myNumber = 7;
var formattedNumber = ("0" + myNumber).slice(-2);
console.log(formattedNumber);

Comments

Submit
0 Comments