class Std

Static methods

If x starts with 0x or 0X, hexadecimal notation is recognized where the following digits may
contain 0-9 and A-F.

Otherwise x is read as decimal number with 0-9 being allowed characters. x may also start with
a - to denote a negative value.

In decimal mode, parsing continues until an invalid character is detected, in which case the
result up to that point is returned. For hexadecimal notation, the effect of invalid characters
is unspecified.

Leading 0s that are not part of the 0x/0X hexadecimal notation are ignored, which means octal
notation is not supported.

If x is null, the result is unspecified.
If x cannot be parsed as integer, the result is null.