bojilov Posted February 16, 2008 Share Posted February 16, 2008 is there a function for raising a number to a power as with a caret. For example, 2^2 = 4. I was trying to use the caret and I got 2^2 = 6. Can anyone explain this? Link to comment https://forums.phpfreaks.com/topic/91354-math-function-for-squaring-a-variable/ Share on other sites More sharing options...
sasa Posted February 16, 2008 Share Posted February 16, 2008 pow($base,$exponent) Link to comment https://forums.phpfreaks.com/topic/91354-math-function-for-squaring-a-variable/#findComment-468121 Share on other sites More sharing options...
bojilov Posted February 16, 2008 Author Share Posted February 16, 2008 Thanks, preciate it boji Link to comment https://forums.phpfreaks.com/topic/91354-math-function-for-squaring-a-variable/#findComment-468125 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.