SilverScreen Solid Modeler



Previous topic Next topic  


Previous topic Next topic JavaScript is required for the print function  



double frexp( double x, int *np )


double  x;         /* a double value */

int    *np;        /* address of integer to receive exponent value */




#include "math.h"


The frexp function splits the floating point number x into a fraction f and an exponent n such that x = f * pow( 2, n ), with (0.5 <= f < 1.0).



x is any double. np is the address of an integer that is to receive the computed exponent.


Return Value

frexp returns f, and stores n into the integer pointed to by np . If x is 0.0, then both the return value and the value stored into np will also be 0.


See Also

fmod , modf