.TH fmod() "" "" "Mathematics Function (libm)"
.PC "Calculate modulus for floating-point number"
.B "#include <math.h>"
\fBdouble\fR
\fBfmod(\fInumber\^\fB, \fIdivisor\^\fB)\fR
\fBdouble \fInumber\^\fB, \fIdivisor\^\fB;\fR
.PP
.II "floating-point^modulus"
The mathematics function
.B fmod()
divides
.I number
by
.I divisor
and returns the remainder.
If
.I divisor
is nonzero, the return value will have the same sign as
.IR divisor .
If
.I divisor
is zero, however, the \*(CO implementation of
.BR fmod()
returns 0.0 and sets
.B errno to
.BR EDOM .
.SH "See Also"
.Xr "ceil()," ceil
.Xr "fabs()," fabs
.Xr "floor()," floor
.Xr "libm" libm
.br
\*(AS, \(sc7.5.6.4
.br
\*(PX Standard, \(sc8.1
