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? Quote 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) Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.