frexp(3M)frexp(3M)NAMEfrexp(), frexpf(), frexpl(), frexpw(), frexpq() - extract mantissa and
exponent from floating-point number
SYNOPSIS
HP Integrity Server Only
DESCRIPTION
The function breaks a floating-point number into a normalized fraction
and an integral power of 2. It stores the integer exponent in the
object pointed to by exp.
Integrity Server Only
is a version of it takes a first argument and returns a result.
is a version of it takes a first argument and returns a result.
is an version of it takes an first argument and returns an result. is
equivalent to on HP-UX systems.
USAGE
To use (for Integrity servers) compile either with the default option
or with the option.
To use (for Integrity servers) compile either with the default option
or with the and options.
To use (for Integrity servers) or compile also with the option.
To use any of these functions, make sure your program includes and link
in the math library by specifying on the compiler or linker command
line. For more information, see the at the following site:
RETURN VALUE
The function returns the value x, such that x is a 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, returns NaN, and the value of *exp is unspecified.
If value returns value, and the value of *exp is unspecified.
These functions raise no exceptions.
ERRORS
No errors are defined.
SEE ALSOilogb(3M), ldexp(3M), logb(3M), modf(3M), scalb(3M), scalbln(3M),
scalbn(3M), math(5).
STANDARDS CONFORMANCE
: SVID3, XPG4.2, ANSI C, ISO/IEC C99 (including Annex F, ``IEC 60559
floating-point arithmetic'')
: ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arithâ
metic'')
frexp(3M)