On May 3, 2007, at 4:57 PM, Derek Kalweit wrote:
> Dangerous sometimes when systems assume a leading 0 means octal...
> Javascript of all things, in their parseInt() will assume OCTAL if you
> send in a string of "09". 09 isn't even a valid octal value! It's
> kinda hard when your system only fails a couple hours a day due to
> this kinda thing... Solution? parseFloat("09")... ;-)
>>> print 09
File "<stdin>", line 1
print 09
^
SyntaxError: invalid token
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/%(messageid)s
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.