View Single Post
Old Mar 1st, 2006, 7:27 PM   #4
Navid
Hobbyist Programmer
 
Navid's Avatar
 
Join Date: Feb 2005
Location: Canada
Posts: 187
Rep Power: 4 Navid is on a distinguished road
Send a message via MSN to Navid
I'm not sure what you mean by "the number e", but for exponents, pow(3,2) is equivalent to 3^2.

EDIT: Make sure that pow() uses arguments that are double or float type, they both must be the same type. It's return value is also a double or float type.

If you are going to display the output of pow(), make sure you use the %f specifier (if you are coding in C).

Last edited by Navid; Mar 1st, 2006 at 7:54 PM.
Navid is offline   Reply With Quote