Extracts the exponent of x as a signed integral value.
If x is subnormal, it is treated as if it were normalized. For a positive, finite x:
1 <= x * FLT_RADIX-logb(x) < FLT_RADIX
assert(logb(1.0) == 0); assert(logb(100.0) == 6); assert(logb(0.0) == -real.infinity); assert(logb(real.infinity) == real.infinity); assert(logb(-real.infinity) == real.infinity);
See Implementation
Extracts the exponent of x as a signed integral value.
If x is subnormal, it is treated as if it were normalized. For a positive, finite x:
1 <= x * FLT_RADIX-logb(x) < FLT_RADIX