[thelist] javascript parseInt (TIP)

Christian Heilmann codepo8 at gmail.com
Fri Sep 15 12:04:12 CDT 2006

<tip type="javascript parseInt shortcut">
In addition to Sam's tip to *always add the radix when using
parseInt()* you can also use a shortcut when dealing with decimals.
+"08" will return 8

Chris Heilmann
Book: http://www.beginningjavascript.com
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/

More information about the thelist mailing list