ldexp method
Implementation
MathValue ldexp( int exp ){ // load exponent
double x = toFloat();
double w = (exp >= 0) ? 2.0 : 0.5;
if( exp < 0 ) exp = -exp;
while( exp != 0 ){
if( (exp & 1) != 0 ) x *= w;
w *= w;
exp = exp ~/ 2;
}
return floatToValue( x );
}