How do I translate X to the 25th power into something php understands? -
i trying figure out how code 10 25th power times variable. have tried x*(x^25) not return correct value. if matters, formula find inflation, actual formula i'm using is:
x*(1.01^25) xequal amount of money being calculated1.01equal 1% inflation25equal number of years, needs 25 in case
just use pow() function:
$x = 10; echo pow($x, 25); //(base, exponent)
Comments
Post a Comment