Parsing Numbers in Elixir

5 years ago
Anonymous $RBasgWKaIV

https://medium.com/@AppSignal/parsing-numbers-in-elixir-f99da425ba02

Like any modern programming language, Elixir has built-in tools for doing basic tasks, such as parsing numbers from strings. Although they’re built-in and ready to use, it’s useful to understand the underlying algorithms.

In this post we’ll first explain how to convert strings to integers in Elixir. This will be quick and useful. After that we’ll go straight down the rabbit hole and explain the underlying algorithms. This is the Alchemy we love. It may help you implement a parser for something similar, but it will definitely satisfy your curiosity about the mathematical ideas behind parsing numbers in Elixir.