how to get the value after som point js code example
Example 1: javascript two character integer
var myNumber = 7;
var formattedNumber = ("0" + myNumber).slice(-2);
console.log(formattedNumber);
Example 2: get decimals from float javascript
js> 2.3 % 1
0.2999999999999998