[Contents] [Previous Section] [Next Section] [Index]


ilogb-Computes an Unbiased Exponent

Interface

int ilogb (F_TYPE x) 

Description

ilogb() returns the integral part of logr(|x|) as a signed integral value, for x /= 0, where r is the radix of the machine's floating point arithmetic.

Exceptions


Exceptional Argument       Routine Behavior

|x| = infinity             INT_MAX

x = 0, NaN                 INT_MIN