Hi
I am trying to calculate a power using an integer as a base and a float point number as exponent in C.
pow in math.h does not work with floating point numbers.
Does any one know any fast way to do this....
thanks
This is a discussion on help calcualting a floar power within the C Programming forums, part of the General Programming Boards category; Hi I am trying to calculate a power using an integer as a base and a float point number as ...
Hi
I am trying to calculate a power using an integer as a base and a float point number as exponent in C.
pow in math.h does not work with floating point numbers.
Does any one know any fast way to do this....
thanks
pow() ONLY works with doubles, so what's the problem?
http://www.cppreference.com/stdmath/pow.html
nevermind....it works now