Number.toCurrencyString() has a bug when using negative numbers.
Steps to reproduce:
This is using the nightly build of SmartClient for 2011-12-26. Although it happens in earlier versions, I just grabbed the latest to ensure it was still a problem.
Chris
Steps to reproduce:
Code:
n = parseFloat("22.99"); n.toCurrencyString('$'); // outputs "$22.99" as expected n2 = parseFloat("-22.99"); n2.toCurrencyString('$'); // outputs "$-23.01" OOPS!
Chris
Comment