SYNOPSIS
#include <math.h>
double fmod(double x, double y)
float fmodf(float x, float y)
DESCRIPTION
The
An application wishing to check for error situations should set
errno to 0 before calling
The
PARAMETERS
- x
-
Is the dividend for which the remainder is desired.
- y
-
Is the divisor for which the remainder is desired.
RETURN VALUES
The
If x or y is NaN, NaN is returned.
If y is 0 and if x is not NaN, then:
-
In IEEE mode, NaN is returned.
-
In POSIX mode, NaN is returned and errno is set to EDOM.
-
In SVID mode, x is returned and
matherr() is called. -
In XOPEN mode, NaN is returned and
matherr() is called.
If y is 0, or if x is +Infinity or -Infinity, either 0 or NaN is returned.
If y is non-zero, fmod(0, y) returns the value of x. If x is not +Infinity or -Infinity, fmod(x, +Infinity) or fmod(x, -Infinity) returns the value of x.
If the result underflows, 0 is returned.
CONFORMANCE
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
PTC MKS Toolkit 10.5 Documentation Build 40.