MicrOS
fmodl.c File Reference
#include "../math.h"

Functions

long double fmodl (long double numer, long double denom)
 Compute remainder of division. More...
 

Function Documentation

◆ fmodl()

long double fmodl ( long double  numer,
long double  denom 
)

Compute remainder of division.

The fmodl functions compute the floating-point remainder of x/y.

Parameters
numerValue of the quotient numerator.
denomValue of the quotient denominator.
Returns
The fmodl functions return the value x − ny, for some integer n such that, if y is nonzero, the result has the same sign as x and magnitude less than the magnitude of y. If y is zero, a domain error occurs and the fmod functions return zero.