Question
Powf (power exponent) don't return float values
Posted on June 08, 2015 at 13:03
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:
float
EXPONENT_BASE_2;
EXPONENT_BASE_2 = powl(4.73, 0);
The result is
125410439
instead of
1254104217423
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!
