Search code examples
elixir

Convert Elixir string to integer or float


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

string_to_integer

Solution

  • Check Integer.parse/1 and Float.parse/1.