7.12.10.2 The remainder functions

Synopsis

1

#include <math.h>
double remainder(double x, double y);
float remainderf(float x, float y);
long double remainderl(long double x, long double y);

Description

2

The remainder functions compute the remainder x REM y required by IEC 60559.[1]

Returns

3

The remainder functions return x REM y. If y is zero, whether a domain error occurs or the functions return zero is implementation defined.

Footnotes