C Tutorial/math.h/ilogb
ilogb
Item Value Header file math.h Declaration int ilogbf(float num);int ilogb(double num);int ilogbl(long double num); Return returns the exponent of num.
#include <math.h>
#include <stdio.h>
int main(void)
{
int e;
e = ilogbl(4);
printf("%d", e);
}