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

Functions

float fmodf (float numer, float denom)
 Compute remainder of division. More...
 

Function Documentation

◆ fmodf()

float fmodf ( float  numer,
float  denom 
)

Compute remainder of division.

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

Parameters
numerValue of the quotient numerator.
denomValue of the quotient denominator.
Returns
The fmodf 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 fmodf functions return zero.