|
frexpfunction
<cmath>
double frexp ( double x, int * exp ); float frexp ( float x, int * exp ); long double frexp ( long double x, int * exp ); Get significand and exponent Breaks the floating point number x into its binary significand (a floating point value between 0.5(included) and 1.0(excluded)) and an integral exponent for 2, such that:x = significand * 2 exponent The exponent is stored in the location pointed by exp, and the significand is the value returned by the function. If x is zero, both parts (significand and exponent) are zero. Parameters
Return ValueThe binary significand of x.This value is the floating point value in the interval [0.5,1) which, once multiplied by 2 raised to the power of exp, yields x. PortabilityIn C, only the double version of this function exists with this name.Example
Output:
See also
|