Now functions strtod
and strtol
support
parsing hex
number format, infinity
, NaN
and other non-standard formats.
But how to convert string to number using only classic format:
123
, 1.23
, 0.123
, -123
, 1.23e10
, 1.23e-10
?
Not: +123
, .123
, 0xabcd
, 0123
and etc?