Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rem(3C) — CX/UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

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 portion of x/y is exactly .5, then n is chosen to be the nearest even integer. 

CX/UX Programmer’s Reference Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026