Convert Elixir string to integer or float

Lahiru picture Lahiru · Mar 22, 2014 · Viewed 66.3k times · Source

I need to convert a string to a floating point value or an integer. There was no method such as,

string_to_integer

Answer

José Valim picture José Valim · Mar 22, 2014