Fast-path parsing of numbers with no fractional part

Integers are easy to parse, so no need to call strtod.