COHERENT manpages

This page displays the COHERENT manpage for fmod() [Calculate modulus for floating-point number].

List of available manpages
Index


fmod() -- Mathematics Function (libm)

Calculate modulus for floating-point number
#include <math.h>
double
fmod(number, divisor)
double number, divisor;

The mathematics  function fmod() divides number by  divisor and returns the
remainder.  If divisor is nonzero, the return value will have the same sign
as divisor.  If divisor  is zero,  however, the COHERENT  implementation of
fmod() returns 0.0 and sets errno EDOM.

See Also

ceil(),
fabs(),
floor(),
libm
ANSI Standard, §7.5.6.4
POSIX Standard, §8.1