Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

fmod, fmodf, fmodl - Remainder of a division

&pagelevel(4)&pagelevel

Definition

#include <math.h>

double fmod(double x, double y);
float fmodf(float x, float y); (C11)
long double fmodl(long double x, long double y);(C11)

These functions calculate the remainder of the division x/y.

The remainder has the same sign as the dividend x and its absolute value is always less than the divisor y.

Return val.

Remainder of the division x/y as a floating-point number



if successful.


0

if y = 0.