I need minutes for a modulus operation, and the time string is of
format "hh.nn". All methods are working fine:

parseInt( time.substr(-2), 10 )

+time.substr(-2)

~~t.substr(-2)

Number( t.substr(-2) )

Thank you all,
Dan

-- 
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

Reply via email to