| Subject |
Re: bBASE payment annuity( p_,i,_n_) function |
| From |
Ken Mayer <dbase@nospam.goldenstag.net> |
| Date |
Fri, 5 Nov 2021 22:23:41 -0700 |
| Newsgroups |
dbase.getting-started |
On 11/5/2021 5:21 PM, Norman Snowden wrote:
> " dBASE payment Annuity, (p_,i_,n_)"
> ? p_,"p_", i_,"i_", n_, "n_"
> 457,"p_", .07, "i_", 13, "n_"
> cpayment = Payment(457,.07,13)
> cpayment = 54.78
> This is correct
> "However if I set up"
> cpayment = Payment(p_,i_,n_)
> "It won'compute! Computer freezes up"
>
> It previously worked in this program several years ago. Now a problem.
> I would appreciate any ideas.
> Thanks, Norman
Using information you gave above, put in a program:
/*
Payment test Norman Snowden
*/
p_ = 457
i_ = .07
n_ = 13
? p_,"p_", i_,"i_", n_, "n_"
// 457,"p_", .07, "i_", 13, "n_"
cpayment = Payment(457,.07,13)
? cPayment
cpayment = Payment(p_,i_,n_)
? cPayment
Works fine.
So ... you need to provide more information. Such as, what version of
dBASE? What version of Windows? Where are the values defined? Etc.
Ken
--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm
|
|