United States-English |
|
|
HP-UX Reference > Ffrexp(3M)HP-UX 11i Version 3: February 2007 |
|
NAMEfrexp(), frexpf(), frexpl(), frexpw(), frexpq() — extract mantissa and exponent from floating-point number DESCRIPTIONThe frexp() function breaks a floating-point number into a normalized fraction and an integral power of 2. It stores the integer exponent in the int object pointed to by exp. Integrity Server Onlyfrexpf() is a float version of frexp(); it takes a float first argument and returns a float result. frexpl() is a long double version of frexp(); it takes a long double first argument and returns a long double result. frexpw() is an extended version of frexp(); it takes an extended first argument and returns an extended result. frexpq() is equivalent to frexpl() on HP-UX systems. USAGETo use (for Integrity servers) frexpf(), compile either with the default -Ae option or with the -Aa option. To use (for Integrity servers) frexpl(), frexpw(), or frexpq(), compile either with the default -Ae option or with the -Aa and -D_HPUX_SOURCE options. To use (for Integrity servers) frexpw() or frexpq(), compile also with the -fpwidetypes option. To use any of these functions, make sure your program includes <math.h>, and link in the math library by specifying -lm on the compiler or linker command line. For more information, see the HP-UX floating-point guide for HP Integrity servers at the following site: http://www.hp.com/go/fp. RETURN VALUEThe frexp() function returns the value x, such that x is a double with magnitude in the interval [0.5, 1] or zero, and value equals x times 2 raised to the power *exp. If value is zero, returns value and stores zero in the object pointed to by exp. If value is NaN, frexp() returns NaN, and the value of *exp is unspecified. If value is ±INFINITY, frexp() returns value, and the value of *exp is unspecified. These functions raise no exceptions. |
Printable version | ||
|