Calculates the present value (PV) of a loan or investment using numpy financial functions.
Registered as a process-text handler.
| Parameter | Description |
|---|---|
Param1 |
Annual interest rate as a percentage (e.g. 12 for 12%) |
Param2 |
Number of periods (term) |
Param3 |
Payment amount per period |
Divides Param1 by 100 to get the decimal rate, then calls numpy.pv(rate, term, amount). The result is rounded to 2 decimal places and returned as a positive value.
Returns the present value as a string.
ObjProcessText(ObjData.ObjData) — inherits database and config access from ObjData.
cythonize -3 -a -i ObjTextPV.py
Updated : 2025-10-02