Fixes decimal places error on scientific notation

When step size becomes so small that the float is represented in scientific notation, can't get the `length` of the decimal places.