Well it looks like JS is defaulting to base 8 in it’s parseInt routine. There are 2 workarounds that I’ve come across (once you get over the initial reaction of what the hell use is base8 in a scripting language):
- use
parseInt( strExpression, 10 )
.. to force decimal - use
Number( strExpression )
.. if you’re doing simple numerics