ILOGB(3) BSD Library Functions Manual ILOGB(3)
NAME
ilogb -- return exponent as an integer value
SYNOPSIS
##include <>
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 FPILOGB0.
ilogb(]-infinity) returns INTMAX.
ilogb(x) returns FPILOGBNAN if x is a NaN.
A range error may occur if x is 0, ]-infinity, or a nan.
The special return values FPILOGB0 and FPILOGBNAN are defined in
math.h, and may differ between platforms. INTMAX is defined in lim-
its.h.
SEE ALSO
math(3)
STANDARDS
The ilogb() functions conform to ISO/IEC 9899:1999(E).
BSD July 22, 2003 BSD
|