Tag Archive for maths

Calculating an exponential base in PHP

Ok then, this is a very specialist thing admittedly, but no less useful.  I’m currently working on calculating an exponential curve in PHP, which is all fairly straightforward.  But I wanted to ensure that, after 9 iterations, it went to exactly 1.  By guessing I’d gotten it to 1.0004, that would cock-up all the calculations if there were massive figures involved.

Read more