Table of Contents
Previous Section Next Section

ilogb

#include <math.h>int ilogbf(float num);int ilogb(double num);
int ilogbl(long double num);

ilogb( ), ilogbf( ), and ilogbl( ) were added by C99.

The ilogb( ) family of functions returns the exponent of num. This value is returned as an int value.

A related function is logb( ).


Table of Contents
Previous Section Next Section