ilogb : ilogb « math.h « C Tutorial






ItemValue
Header filemath.h
Declarationint ilogbf(float num);
int ilogb(double num);
int ilogbl(long double num);
Returnreturns the exponent of num.


#include <math.h>
  #include <stdio.h>

  int main(void)
  {

     int e;

     e = ilogbl(4);
 
     printf("%d", e);
 
  }
2








19.29.ilogb
19.29.1.ilogb