Programming-Idioms

History of Idiom 22 > diff from v58 to v59

Edit summary for version 59 :
[Scala] Closer to idiom statement, I guess

Version 58

2016-11-27, 14:47:52

Version 59

2016-11-27, 14:50:16

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
Extra Keywords
int base
Code
val i: String = "53"
i.toInt
Code
s.toInt