A number is having its format changed during minification

Jul 26, 2013 at 8:49 PM
I have a variable
var testArray=[2000,2001,2002]
When I run this through the minifier it gets converted to
var testArray=[2e3,2001,2002]
Obviously this is not good. Is there a setting which can prevent this from happening?
Jul 26, 2013 at 8:57 PM
Um... why is this not good?
2e3 is scientific notation for 2000. What's the issue here?
Jul 26, 2013 at 9:00 PM
Hmmm... you're right, and I'm slightly embarrassed.

I just assumed that javascript wouldn't accept this as a valid number, but having just run a quick test... no problem.

Ok, er... forget I posted that question ;)
Jul 26, 2013 at 9:17 PM
No problem! :)