Page 1 of 1

How to use exponential function?

Posted: Fri Nov 19, 2004 11:28 am
by aldonakamura
Hi there to all!
I was looking to this forum and didnt find a solution for my simple problem. Hope to get success writing here.

I need to do a simple math exponential function like this:

a = 4
b = 2
c = a ^ b ... c = 16 (4 * 4), but using PHP, this math calc returns me 8!

Does anybody help me? Thanx a lot!
My best regards, Aldo

Posted: Fri Nov 19, 2004 11:32 am
by peni
$c = pow($a, $b);

Posted: Fri Nov 19, 2004 11:59 am
by aldonakamura
Wow! It works!
Thanx so much for the HELP!
Best Regards!