toIntOrNull
Parses the string as an Int number and returns the result
or null
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
or null
if the string is not a valid representation of a number.