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").

HISTORY

An fmod() function first appeared in AT&T v5 .

FMOD (3) April 3, 2022

tail head cat sleep
QR code linking to this page


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

I have a natural revulsion to any operating system that shows so little planning as to have to named all of its commands after digestive noises (awk, grep, fsck, nroff).