Hacker News new | ask | show | jobs
by weaksauce 2562 days ago
parseInt will use the first few characters in the string as a heuristic to determine the radix. It’s not reliable for some types of common decimal strings(padded zeros will cause erroneous parsing)