What I Learned while working on an Elixir App

Recently, I was working on writing a background worker using Elixir for one of our clients. This post is about what I learned while writing the worker. Adding decimal numbers I tried addition for Decimal type, the same way as we do Integers like: It raises an Arithmetic error since Decimal has an underlying struct: […]

Recently, I was working on writing a background worker using Elixir for one of our clients. This post is about what I learned while writing the worker.
Adding decimal numbers I tried addition for Decimal type, the same way as we do Integers like:
It raises an Arithmetic error since Decimal has an underlying struct: %Decimal{coef: coefficient(), exp: exponent(), sign: sign()}
I checked the decimal library & I found that it has an add function to add Decimal or integer values.
Source: Codemancers