Logo

Programming-Idioms

History of Idiom 22 > diff from v71 to v72

Edit summary for version 72 by miguel:
New Kotlin implementation by user [miguel]

Version 71

2019-09-26, 17:53:12

Version 72

2019-09-26, 17:54:30

Idiom #22 Convert string to integer

Extract integer value i from its string representation s (in radix 10)

Illustration

Idiom #22 Convert string to integer

Extract integer value i from its string representation s (in radix 10)

Illustration
Extra Keywords
int base conversion
Extra Keywords
int base conversion
Code
val i = s.toInt()