FREXP - obtain mantissa and exponent.

(ANSI Standard)

Usage:

#include <math.h>
y = frexp( x, expptr );

Where:

double x, y;
 
int *expptr;
 

Description:

"frexp" returns the mantissa of "x" as a double precision number less than 1. It also stores an integer N in the memory location indicated by "expptr", such that

x = y * 2**N;

If "x" is zero, "frexp" returns zero for both the mantissa and exponent.

Copyright © 1996, Thinkage Ltd.