Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The process of parsing an integer or floating-point number from a string can produce many errors. The string might not contain a number. It might contain a number of the correct type that is out of range (such as an integer that is larger than {{INT_MAX}}). The string may also contain extra information after the number, which may or may not be useful after the conversion. These error conditions should be detected and addressed when a string-to-number conversion is performed.

...