From inside a kernel:
logb(2.000) = 1065353216 !!
Same for rest of log functions (log2, log10, log...)
Plz fix
Solved! Go to Solution.
I guess, you might have used format specifier as "%d" inside the printf statement. Please try as follows:
printf("\n logb(2.000) = %f", logb(2.000))
OR
printf("\n logb(2.000) = %d", (int)(logb(2.000)));
View solution in original post
Oops! My bad. Ty for your fast response;-)