AnsweredAssumed Answered

Powf (power exponent) don't return float values

Question asked by prieur.jean on Jun 8, 2015
Latest reply on Jun 10, 2015 by prieur.jean
Hi everybody,

I use the function powf (that is supposed to return a float), included in the library
#include <math.h>

This is the definition of the function in math.h :
float powf _PARAMS((float, float));

When I run this code:
EXPONENT_BASE_2 = powl(4.73, 12.0);

The result is 
125410439 instead of 125410439.217423
Powf don't return a float but a int. Do you have any idea of what happens? i also tried pow and powl but it's the same result...Thanks a lot!