>  Neither will always do what you want.

The plus sign always does what I want.  It always converts in base 10 and
works with integers and floats.

     +"123"    => 123
     +"0123"  => 123
     +"012.3" => 12.3

It is parseInt that causes the trouble with octal.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to