Adventures in JavaScript number parsing
So you want to parse strings and convert them into numbers? JavaScript has the straight-forward parseInt method for this, you say. But, sadly, and quite unexpectedly, it’s not that straight-forward. Consider: parseInt thinks the numbers that are preceded by a “0” are octal numbers (in the octal numeral system only the digits 0 to 7 … Continue reading Adventures in JavaScript number parsing
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed