Rounds a numeric value to the nearest power of 10 toward negative infinity.
10
input value
rounded value
var v = floor10( 3.141592653589793 ); // returns 1.0
var v = floor10( 9.0 ); // returns 1.0
var v = floor10( -0.314 ); // returns -1.0
Rounds a numeric value to the nearest power of
10
toward negative infinity.