Re: Calculation assistance.. :)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stephen Johnson a écrit :
OK.. Math is NOT my forte ...

I am converting a site from ASP to PHP ... And this calc is in the ASP Code
:
    $nMonthlyInterest = $nRate / (12 * 100)

Wow, that's rather not good. Learn about <http://en.wikipedia.org/wiki/Geometric_progression>.

  Because :

12 % of 100 is 12

but if you get 1 % each month :
1 % of 100 the first month
1 % of 99 the second month
etc.
so it will be less than 12.

--
Mickaël Wolff aka Lupus Michaelis
http://lupusmic.org

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux