C Run-Time Library Reference
fmod
floating-point modulus
Synopsis
#include <math.h>
double fmod(double numer, double denom);
float fmodf(float numer, float denom);
Description
The
function computes the floating-point remainder that results
fmod
from dividing the first argument into the second argument. This value is
less than the second argument and has the same sign as the first argument.
If the second argument is equal to zero,
Error Conditions
The
function does not return an error condition.
fmod
Example
#include <math.h>
double y;
y = fmod(5.0, 2.0);
See Also
div, ldiv,
modf
3-60
/* y = 1.0 */
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
returns a zero.
fmod
for ADSP-219x DSPs
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers