tail head cat sleep
QR code linking to this page

Manual Pages  — FMOD

NAME

fmod, fmodf, fmodl – floating-point remainder functions

CONTENTS

LIBRARY

Math Library (libm, -lm)

SYNOPSIS

#include <math.h>

double
fmod(double x, double y);

float
fmodf(float x, float y);

long double
fmodl(long double x, long double y);

DESCRIPTION

The fmod(), fmodf(), and fmodl() functions compute the floating-point remainder of x, Ns, /, Fa, y.

RETURN VALUES

If y is non-zero, the fmod(), fmodf(), and fmodl() functions return the value x, -, Em, i, *, Fa, y,for some integer i, such that the result has the same sign as x and magnitude less than the magnitude of y. If y is zero, a NaN is produced.

SEE ALSO

math(3)

STANDARDS

The fmod(), fmodf(), and fmodl() functions conform to ISO/IEC 9899:1999 ("ISO C99").

FMOD (3) June 19, 2008

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs.
— Maurice Wilkes