ilogb - return an unbiased exponent
#include <math.h> int ilogb (double x)
The ilogb() function returns the exponent part of x. Formally, the return value is the integral part of logr|x| as a signed integral value, for non-zero x, where r is the radix of the machine's floating point arithmetic.The call ilogb(x) is equivalent to (int)logb(x).
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.
No errors are defined.
None.
None.
None.
logb(), <math.h>.