FREXP(3C) COMMAND REFERENCE FREXP(3C)
NAME
frexp, ldexp, modf - split into mantissa and exponent
SYNOPSIS
double frexp(value, eptr)
double value;
int *eptr;
double ldexp(value, exp)
double value;
double modf(value, iptr)
double value, *iptr;
DESCRIPTION
Frexp returns the mantissa of a double value as a double
quantity, x, of magnitude less than 1 and stores an integer
n such that value = x*2n indirectly through eptr.
Ldexp returns the quantity value*2exp.
Modf returns the fractional part of value and stores the
integer part indirectly through iptr.
DIAGNOSTICS
If the result of ldexp could cause an overflow or underflow
then errno is set to ERANGE. HUGE or -HUGE is returned on
overflow depending on the sign of value and 0 is returned on
underflow.
SEE ALSO
intro(3f).
Printed 10/17/86 1
%%index%%
na:72,89;
sy:161,939;
de:1100,600;
di:1700,360;
se:2060,100;
%%index%%000000000094