Rounds a numeric value to the nearest power of two on a linear scale.
input value
rounded value
var v = round2( 3.141592653589793 ); // returns 4.0
var v = round2( 13.0 ); // returns 16.0
var v = round2( -0.314 ); // returns -0.25
Rounds a numeric value to the nearest power of two on a linear scale.