rem(3C) rem(3C)
NAME
remd, remf - IEEE floating point REM function
SYNOPSIS
double remd (x, y)
double x, y;
float remf (x, y)
float x, y;
DESCRIPTION
The IEEE floating point REM(ainder) function is computed as:
r = x - y * n
where x is the dividend, y is the divisor, and n is the
integer nearest to the quotient x/y. If the fractional por-
tion of x/y is exactly .5, then n is chosen to be the
nearest even integer.
Page 1 CX/UX Programmer's Reference Manual