In JavaScript, I want to remove the decimal place & the following zeros.
For example, my original number: \"0.00558\", I want to be left with \"558\".
Is thi
you can do that by a simple regex replace.
var number = "0.00558"; number = number.replace(/^[0\.]+/, ""); console.log(number);//number is now "558"