The following 3 lines of code execute successfully.
var test_variable;
test_variable=a_profit[day_num-max_contract_age];
debugPrintln(" test_variable = " + test_variable);
But then when I change the 3rd line as follows by adding ".toFixed(2)"
debugPrintln(" test_variable = " + test_variable.toFixed(2));
The error message "test_variable has no properties" is displayed.
Please tell me what I am doing wrong.
Thanks,
Joe Miller
var test_variable;
test_variable=a_profit[day_num-max_contract_age];
debugPrintln(" test_variable = " + test_variable);
But then when I change the 3rd line as follows by adding ".toFixed(2)"
debugPrintln(" test_variable = " + test_variable.toFixed(2));
The error message "test_variable has no properties" is displayed.
Please tell me what I am doing wrong.
Thanks,
Joe Miller
Comment