ILOGB(3) Library Functions Manual ILOGB(3)
NAME
ilogb — return an
unbiased exponent
SYNOPSIS
#include <math.h> int ilogb (double x)
DESCRIPTION
The ilogb() function returns the exponent part of x . Formally, the return value is the integral part of log r | x | as a signed integral value, for non-zero x , where r is the radix of the machine's floating point arithmetic.
RETURN VALUE
Upon successful completion, ilogb() returns the exponent part of x.
If x is 0, then ilogb() returns -INT_MIN. If x is NaN or ±Inf, then ilogb() returns INT_MAX.
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
February 1997 posix.fail