Global.alert("base: " + base + ", upfront: " + upfront + ", both: " + (base + upfront));
The above code outputs something like:
base: 15000, upfront: 36, both: 1500036
Why does it combine two numbers instead of adding them?
Ultimately, I want to set the value of another field to this amount using the following command:
mainPanel.feesPanel.initialLoanAmount.setValue(Ext.util.Format.number((base + upfront), '$0,000.00'));
And when I try to do this, it turns the number into millions instead of 15,036.00. Why?
javascript
Scott Sep 03 '10 at 17:23 2010-09-03 17:23
source share