Go to the first, previous, next, last section, table of contents.


fmod

Syntax

#include <math.h>

double fmod(double x, double y);

Description

This function computes the remainder of x/y, which is x - iy for some integer i such that iy < x < (i+1)y.

Return Value

The remainder of x/y. If x is Inf or NaN, the return value is NaN and errno is set to EDOM. If y is zero, the return value is zero (but errno is not changed).

Portability

ANSI, POSIX


Go to the first, previous, next, last section, table of contents.