Power function on other os and compilers.

What types of data values are accepted by the power function on os and compilers besides windows and the VC++ express compiler?
The pow function in cmath (I believe it is in cmath) is universal standard C++. It doesn't matter what compiler, IDE or OS you call it on.
Theoretically you could pass it anything if you converted it first. Check this: http://www.cplusplus.com/reference/clibrary/cmath/pow/
It takes any floating point base (and integers can be converted to floating point without loss) and any exponent type as well.
(and integers can be converted to floating point without loss)


eeehhhhhhh
Why the eh?
because floating points are lossy, so his statement is sketchy.
Topic archived. No new replies allowed.