Rounds a numeric value to the nearest power of 10 on a linear scale.
10
input value
rounded value
var v = round10( 3.141592653589793 ); // returns 1.0
var v = round10( 13.0 ); // returns 10.0
var v = round10( -0.314 ); // returns -0.1
Rounds a numeric value to the nearest power of
10
on a linear scale.