icon Top 9 categories map      RocketAware > man pages >

ieee(3)

Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.


The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Home

Search all pages


Subjects

By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Math
Integer, Floating point, Matrix, Statistics, Boolean, ...

Processing
Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Communications
Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...

    

RocketLink!--> Man page versions: OpenBSD FreeBSD Others



IEEE(3)                   OpenBSD Programmer's Manual                  IEEE(3)

NAME
     copysign, copysignf, finite, finitef, ilogb, ilogbf, nextafter,
     nextafterf, remainder, remainderf, scalbn, scalbnf - Functions for IEEE
     arithmetic



SYNOPSIS
     #include <math.h>

     double
     copysign(double x, double y);

     float
     copysignf(float x, float y);

     int
     finite(double x);

     int
     finitef(float x);

     int
     ilogb(double x);

     int
     ilogbf(float x);

     double
     nextafter(double x, double y);

     float
     nextafterf(float x, float y);

     double
     remainder(double x, double y);

     float
     remainderf(float x, float y);

     double
     scalbn(double x, int n);

     float
     scalbnf(float x, int n);

DESCRIPTION
     These functions are required or recommended by IEEE Std754-1985.

     copysign() returns x with its sign changed to y's.

     finite() returns the value 1 just when -infinity < x < +infinity; other-
     wise a zero is returned (when |x| = infinity or x is NaN

     ilogb() returns x's exponent n, in integer format.  ilogb(+-infinity) re-
     turns INT_MAX and ilogb(0) returns INT_MIN.

     nextafter() returns the next machine representable number from x in di-
     rection y.

     remainder() returns the remainder r := x - n*y where n is the integer
     nearest the exact value of x/y; moreover if |n - x/y| = 1/2 then n is
     even.  Consequently the remainder is computed exactly and |r| <= |y|/2.
     But remainder(x, 0) and remainder(infinity, 0) are invalid operations
     that produce a NaN.
     scalbn() returns x*(2**n) computed by exponent manipulation.

SEE ALSO
     math(3)

HISTORY
     The ieee functions appeared in 4.3BSD.

STANDARDS
     IEEE Std754-1985

OpenBSD 2.6                    February 25, 1994                             2

Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.



(Corrections, notes, and links courtesy of RocketAware.com)


[Detailed Topics]
FreeBSD Sources for ieee(3) functions
FreeBSD Sources for ieee(3) functions
OpenBSD sources for ieee(3)


[Overview Topics]

Up to: Floating point math - Floating point math (including complex numbers)


RocketLink!--> Man page versions: OpenBSD FreeBSD Others






Rapid-Links: Search | About | Comments | Submit Path: RocketAware > man pages > ieee.3/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments