Integer.parse
Integer.parsetextradix
Group: Conversions
Aliases: from text
Documentation
Parses a textual representation of an integer into an integer number, returning a Number_Parse_Error
if the text does not represent a valid integer.
Arguments
text
: The text to parse into a integer.radix
: The number base to use for parsing (defaults to 10).radix
must be between 2 and 36 (inclusive) -- see https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/lang/Character.html#MIN_RADIX.
Examples
Parse the text "20220216" into an integer number.
Integer.parse "20220216"