GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  REMAINDERF (3)

NAME

remainder, remainderf, remainderl, remquo, remquof, remquol - minimal residue functions

CONTENTS

Library
Synopsis
Description
See Also
Standards
History

LIBRARY


.Lb libm

SYNOPSIS


.In math.h double remainder double x double y float remainderf float x float y long double remainderl long double x long double y double remquo double x double y int *quo float remquof float x float y int *quo long double remquol long double x long double y int *quo

DESCRIPTION

remainder, remainderf, remainderl, remquo, remquof, and remquol return the remainder r := x - n*y where n is the integer nearest the exact value of
.Bk -words x / y;
.Ek moreover if | n -
.Sm off x / y |
.Sm on = 1/2 then n is even. Consequently the remainder is computed exactly and
.Sm off | r |
.Sm on <=
.Sm off | y |/2.
.Sm on But attempting to take the remainder when y is 0 or x is ±oo is an invalid operation that produces a NaN.

The remquo, remquof, and remquol functions also store the last k bits of n in the location pointed to by quo, provided that n exists. The number of bits k is platform-specific, but is guaranteed to be at least 3.

SEE ALSO

fmod(3), ieee(3), math(3)

STANDARDS

The remainder, remainderf, remainderl, remquo, remquof, and remquol routines conform to -isoC-99. The remainder is as defined in -ieee754.

HISTORY

The remainder and remainderf functions appeared in BSD 4.3 and
.Fx 2.0 , respectively. The remquo and remquof functions were added in
.Fx 6.0 , and remainderl and remquol were added in
.Fx 8.0 .
Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.