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).



LOGB(3)                  BSD Library Functions Manual                  LOGB(3)

NAME
     logb -- return exponent as a floating-point number

SYNOPSIS
     #include <math.h>

     double
     logb(double x);

     long double
     logbl(long double x);

     float
     logbf(float x);

DESCRIPTION
     The logb() functions return the exponent of x, represented as a floating-point number.

SPECIAL VALUES
     logb(+-0) returns -infinity and raises the "divide-by-zero" floating-point exception.

     logb(+-infinity) returns +infinity.

SEE ALSO
     ilogb(3)

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

BSD                              July 24, 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.