I’m trying to to increment the last decimal of a number from 1.234 to 1.235
var numb = 1.234;
numb.replace(/d$/, numb + 1);
this solution doesn’t increase any thing, is there anything i can do? and how is it when is increment is at 9? thx
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I’m trying to to increment the last decimal of a number from 1.234 to 1.235
var numb = 1.234;
numb.replace(/d$/, numb + 1);
this solution doesn’t increase any thing, is there anything i can do? and how is it when is increment is at 9? thx