SilverScreen Solid Modeler

fmod

fmod

Previous topic Next topic  

fmod

Previous topic Next topic JavaScript is required for the print function  

StandardCLibrary

 

double fmod( double x, double y )

 

double x;       /* a double value */

double y;       /* a double value */

 

 




Synopsis

#include "math.h"

 

The fmod function calculates the floating point remainder r of x / y , where r has the same sign as x , and |r|<|y|. That is, for some integer i, x = i * y + r.

 

 

Parameters

x and y are doubles, y may not be 0.

 

 

Return Value

fmod returns r . If x/y cannot be represented, the result is undefined.

 

 

See Also

modf , frexp