On Feb 22, 2012, at 8:56 AM, Mark Hahn wrote: > > > 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
+'123 px' NaN parseInt('123 px', 10) 123 -- Jorge. -- 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en