SilverScreen Solid Modeler

modf

modf

Previous topic Next topic  

modf

Previous topic Next topic JavaScript is required for the print function  

StandardCLibrary

 

double modf( double x, double *ip )

 

double x;         /* a double value */

double *ip;       /* address of double to receive integer portion*/

 

 




Synopsis

#include "math.h"

 

The modf function splits the floating point number x into an integer i and a fraction f (where fabs(f) < 1.0), with x , f and i all having the same sign.

 

 

Parameters

x is any double value. ip is the address of a double.

 

Return Value

modf stores i, converted to floating point, into the double pointed to by ip, and then returns f .

 

See Also

ldiv