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
Ldexp is undefined when the correct value would overflow;
errno is set to ERANGE.
SEE ALSO
intro(3f) and ieee(3m).
Printed 3/13/89 1
%%index%%
na:288,105;
sy:393,1443;
de:1836,732;
di:2568,315;
se:2883,156;
%%index%%000000000097