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) 
  • x equal amount of money being calculated
  • 1.01 equal 1% inflation
  • 25 equal number of years, needs 25 in case

just use pow() function:

$x = 10;     echo pow($x, 25); //(base, exponent) 

Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -