Just count using whole numbers and then divide the total by 10.
let num = 1321;
num++;
let decimalString = num/10;
console.log(decimalString); // displays "132.2"
Just count using whole numbers and then divide the total by 10.
let num = 1321;
num++;
let decimalString = num/10;
console.log(decimalString); // displays "132.2"