I am new to this Progress 4GL and was looking but unable to find a function like the present value “(PV(rate,nper,pmt,fv,type)” function in Excel. Is there one or is there another solution?
RETURNS DECIMAL
(INPUT Cost AS INTEGER,
INPUT Rate AS DECIMAL,
INPUT NPer AS DECIMAL) :
DEF VAR IRate AS DECIMAL.
DEF VAR R1 AS DECIMAL.
DEF VAR Power AS DECIMAL INITIAL 1.0.
DEF VAR Sum AS DECIMAL INITIAL 0.0.
DEF VAR Ratio AS DECIMAL.
DEF VAR Payment AS DECIMAL.
DEF VAR TermLoop AS INTEGER INITIAL 0.
DEF VAR FinalVal AS DECIMAL.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.