Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44331

Re: Libroffice PMT equivalent in python

References <51790969.7000700@amachu.me>
Date 2013-04-25 13:48 +0200
Subject Re: Libroffice PMT equivalent in python
From Vlastimil Brom <vlastimil.brom@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1056.1366890522.3114.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

2013/4/25 ஆமாச்சு <amachu@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Libroffice PMT equivalent in python Vlastimil Brom <vlastimil.brom@gmail.com> - 2013-04-25 13:48 +0200

csiph-web