I need to find the position of the first not "0" decimal digit. For instance
a = 0.00056;
the fist not "0" digit after the dot is 5, and the searched position is 4. Is there a javascript function already built or an elegant way to get it in javascript?
Just for curiosity, I then will keep 0.00001 as stepping value in a slider the maximum value of which is the variable a.