2013/4/25 ஆமாச்சு <ama...@amachu.me>

> Hi,
>
> Are there equivalent in any Python libraries that could match function
> like PMT in libreoffice?
>
> Refer: https://help.libreoffice.org/Calc/Financial_Functions_Part_Two#PMT
>
> --
>
> Amachu
> --
> http://mail.python.org/mailman/listinfo/python-list
>

Hi,
you may check numpy
http://www.numpy.org/

http://docs.scipy.org/doc/numpy/reference/generated/numpy.pmt.html

>>> import numpy
>>> numpy.pmt(1.99/100/12,36,25000)
-715.95533443739942
>>>

(The input in percent is to be divided by 100 and the output could be
rounded separately, if needed.)

hth,
 vbr
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to