Parsing Numbers in Elixir

6 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.

Last Seen
7 minutes ago
Reputation
0
Spam
0.000
Last Seen
29 minutes ago
Reputation
0
Spam
0.000
Last Seen
33 minutes ago
Reputation
0
Spam
0.000
Last Seen
3 hours ago
Reputation
0
Spam
0.000
Last Seen
7 hours ago
Reputation
0
Spam
0.000
Last Seen
about an hour ago
Reputation
0
Spam
0.000