export default function getPrecision ( step ) { const stepString = step . toString ( ) ; let precision = 0 ; if ( stepString . indexOf ( '.' ) >= 0 ) { precision = stepString . length - stepString . indexOf ( '.' ) - 1 ; } return precision ; }