Programming-Idioms

History of Idiom 22 > diff from v19 to v20

Edit summary for version 20 :

Version 19

2015-09-03, 13:21:25

Version 20

2015-09-04, 11:42:36

Idiom #22 Convert string to integer

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

Idiom #22 Convert string to integer

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

Code
i = String.to_integer(s)
Doc URL
http://elixir-lang.org/docs/v1.0/elixir/String.html#to_integer/1
Demo URL
http://play.elixirbyexample.com/s/796a3e0e97