logbl3
Extract exponent
Part of ilogb(3).
Usage
#include <math.h>
int
ilogb(double x);
int
ilogbf(float x);
int
ilogbl(long double x);
double
logb(double x);
float
logbf(float x);
long double
logbl(long double x);
Library
Math Library (libm, -lm)
Overview
ilogb(), ilogbf() and ilogbl() return x's exponent in integer format. ilogb() returns INT_MAX, ilogb() returns FP_ILOGBNAN, and ilogb(0) returns FP_ILOGB0.
logb(x), logbf(x), and logbl(x) return x's exponent in floating-point format with the same precision as x. logb() returns +, and logb(0) returns - with a division by zero exception.
Releases
39 releases since FreeBSD 8.0-RELEASE; the text changed 26 times.