Logb Function
It returns the exponent of the argument as a floating point integer value .
Syntax:
float logbf(float num); double logb(double num); long double logbl(long double num);
Example:
#include <math.h>
#include <stdio.h>
int main()
{
double x = 1.0;
do {
printf("No : %f , Logb : %f\n", x, logb(x));
x++;
} while (x<12.0);
return 0;
}
Back