Latest #decimal Threads 
:warning: Security advisory: Decimal DoS vulnerability
A vulnerability has been published for decimal where very large exponents can cau...
New
I’m passing a string to decimal.new() and instead of a float it’s returning some data type that not allows me to do aritmetic expressions...
New
When “normalising” Decimal numbers it’s easy fall into something like this:
Decimal.normalize(Decimal.new("10.00"))
Decimal.new("1E+1")
...
New
I am working with monetary data, for which floats are largely discouraged. As a result, I am using the fairly popular Decimal package and...
New
I work on a system where customers are allowed to dynamically query their own data and we use Ecto to build these dynamic queries. One th...
New
How can this be solved? There are two decimal deps out there with identical names.
We have an erlang package that uses decimal (the old...
New
I’m hoping smarter eyes than mine can help me resolve this issue. I am attempting to convert a decimal to an integer. The Decimal imple...
New
i have created new phoenix app with mix phx.new command and added PETAL stack every thing was working fine but my company requirement is ...
New
Noob question, how do I set the default decimal precision in phoenix?
I can see from the Decimal docs I need to run D.Context.set(%D.Con...
New
I’m using the Decimal package to work with a field in my changeset.
field :amount, :decimal
I can validate it with validate_number so t...
New
This Week's Trending
This Month's Trending
This Year's Trending
:warning: Security advisory: Decimal DoS vulnerability
A vulnerability has been published for decimal where very large exponents can cau...
New
Last Three Year's Trending
Hey guys,
I have a short and simple question, which I am currently unable to figure out using the documentation of the Jason library.
...
New
I am working with monetary data, for which floats are largely discouraged. As a result, I am using the fairly popular Decimal package and...
New
When “normalising” Decimal numbers it’s easy fall into something like this:
Decimal.normalize(Decimal.new("10.00"))
Decimal.new("1E+1")
...
New
I’m passing a string to decimal.new() and instead of a float it’s returning some data type that not allows me to do aritmetic expressions...
New
Trending Over Three Years
Hello all,
I have a form with one price input field.
In order to follow industry standards (and for learning purpose) I’m using Money. ...
New
iex> 75000 / 12.5
6.0e3
iex(14)> 75000 / 12.5 |> Float.to_string
"6.0e3"
It is kind of weird that Elixir...
New
Hi,
I recently tried to upgrade a small application to ecto2 and sqlite_ecto2. Previously I could just run mix test to run my tests, but...
New
I’m using the Decimal package to work with a field in my changeset.
field :amount, :decimal
I can validate it with validate_number so t...
New
Hello everybody,
In order to deal with currencies, we are used to consider the amounts as cents and then using integers.
One can also s...
New
I’m happy to announce the plans for the next major version of Decimal: v2.0.0.
The primary reason for the next major release is a need f...
New
I am implementing an application that deals with monetary values. Therefore I use the excellent Decimal library to handle such values.
N...
New
Hi.
Please I’m getting this unusual rounding error when summing numbers using the Decimal Library
My result is off by 0.01
208,505,...
New
Hey, everyone!
Today I started writing a small library to perform computations with Complex Numbers. (ComplexNum, it is still very much...
New
I need a function that takes a Decimal (it’s money, so two decimal places) and rounds up to the nearest quarter. I’m trying to avoid con...
New
Hi everybody,
I found a bug or structural problem in Decimal what could have some big impact:
wrong calculation (maybe with money!!!) o...
New
For some reason Decimal module rounds numbers with many decimal places, even though the precision is set to 28. For example, IO.inspect(D...
New
Noob question, how do I set the default decimal precision in phoenix?
I can see from the Decimal docs I need to run D.Context.set(%D.Con...
New
Hello,
While coding tests for a hobby project of mine, I stumbled upon something odd when directly comparing Decimals – which is a bad i...
New
I am having a strange issue. Using Poison I encode object properties as JSON and send them to the VueJS front-end. One of the properties ...
New
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







