Monday, February 6, 2012

casting strings to integers or decimals with JavaScript

http://www.javascripter.net/faq/convert2.htm touches on casting strings to both decimal and integer values with JavaScript. parseFloat(string) and parseInt(string) do the needed.

No comments:

Post a Comment