Programming-Idioms

History of Idiom 22 > diff from v95 to v96

Edit summary for version 96 :
[Elixir] 404

Version 95

2020-04-03, 09:47:58

Version 96

2020-05-10, 21:55:45

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
i = String.to_integer(s)
Code
i = String.to_integer(s)
Doc URL
http://elixir-lang.org/docs/v1.0/elixir/String.html#to_integer/1
Doc URL
https://hexdocs.pm/elixir/String.html#to_integer/1