ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



ILOGB(3)                 BSD Library Functions Manual                 ILOGB(3)

NAME
     ilogb -- return exponent as an integer value

SYNOPSIS
     #include <math.h>

     int
     ilogb(double x);

     int
     ilogbl(long double x);

     int
     ilogbf(float x);

DESCRIPTION
     The ilogb() functions return the exponent of x as a signed integer value.

SPECIAL VALUES
     ilogb(+-0) returns FP_ILOGB0.

     ilogb(+-infinity) returns INT_MAX.

     ilogb(x) returns FP_ILOGBNAN if x is a NaN.

     A range error may occur if x is 0, +-infinity, or a nan.

     The special return values FP_ILOGB0 and FP_ILOGBNAN are defined in math.h, and may differ between plat-forms. platforms.
     forms.  INT_MAX is defined in limits.h.

SEE ALSO
     math(3)

STANDARDS
     The ilogb() functions conform to ISO/IEC 9899:1999(E).

BSD                              July 22, 2003                             BSD

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.