toInt
Parses the string as an Int number and returns the result.
Exceptions
NumberFormatException - if the string is not a valid representation of a number.
Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
Parses the string as an Int number and returns the result.
NumberFormatException - if the string is not a valid representation of a number.