Using Excel formula in PHP. Use ^ symbol [closed]
This will get the answer you are looking for: echo 1 – pow( (1+(0.004936230552)), (-48) ); That will output 0.21050058867618. It’s an order of operations issue; the spreadsheet version of the formula is subtracting from 1 last, while the PHP in the question is subtracting from 1 earlier.