NumberFormat.class.js Decimal Bug
Brought to you by:
jeff_spi
Paul and I noticed this bug when we were first
working on our PreOrder project. The NumberFormat
class was putting the decimal place in the wrong
position or in some cases even returning multiple
decimal points.
We had fixed it at the time, but updating to version
1.6 of the xWire client reverted our file back to the
version with the bug.
The fix is to change line 54 from....
number = this.roundIfNecessary(parseFloat(number),
fractionDigits);
...to...
number = this.roundIfNecessary(number,
fractionDigits);