06-28-2015, 08:20 PM
Hello all,
I am trying to write a program, actually I got it working, but I want to create variables of two or more letters. How can I accomplish that?
The "FV" local variable down below if I use it, let's say, FV=...., the Solver creates two variables, now the equation is wrong.
I want to create a variable of three characters for "M", like "PMT"
EXPORT TVM_Test()
BEGIN
LOCAL FV;
STARTAPP("Solve");
"F=P*(1+((R/100)/N))^(N*T)+M*((1+((R/100)/N))^(N*T)-1)/((R/100)/N)"▶E1;
PRINT();
PRINT("NOTE: This Equation Will Solve for Any Unknown Variable.");
PRINT(" ");
PRINT("P = Present Value");
PRINT("F = Future Value");
PRINT("R = Interest Rate");
PRINT("T = Numbers of Years");
PRINT("N = Compounds per Year.");
PRINT("M= Amount of payment or deposit.");
PRINT(" ");
PRINT("Press ENTER ↲ to Continue...");
// Display Solver
CHECK(1);
STARTVIEW(2,1);
END;
Thank you.
I am trying to write a program, actually I got it working, but I want to create variables of two or more letters. How can I accomplish that?
The "FV" local variable down below if I use it, let's say, FV=...., the Solver creates two variables, now the equation is wrong.
I want to create a variable of three characters for "M", like "PMT"
EXPORT TVM_Test()
BEGIN
LOCAL FV;
STARTAPP("Solve");
"F=P*(1+((R/100)/N))^(N*T)+M*((1+((R/100)/N))^(N*T)-1)/((R/100)/N)"▶E1;
PRINT();
PRINT("NOTE: This Equation Will Solve for Any Unknown Variable.");
PRINT(" ");
PRINT("P = Present Value");
PRINT("F = Future Value");
PRINT("R = Interest Rate");
PRINT("T = Numbers of Years");
PRINT("N = Compounds per Year.");
PRINT("M= Amount of payment or deposit.");
PRINT(" ");
PRINT("Press ENTER ↲ to Continue...");
// Display Solver
CHECK(1);
STARTVIEW(2,1);
END;
Thank you.