Latest #decimal Threads Top

maennchen
:warning: Security advisory: Decimal DoS vulnerability A vulnerability has been published for decimal where very large exponents can cau...
New
henriquesati
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
silverdr
When “normalising” Decimal numbers it’s easy fall into something like this: Decimal.normalize(Decimal.new("10.00")) Decimal.new("1E+1") ...
New
munksgaard
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
mmmries
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
sandorbedo
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
kip
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
ambareesha7
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
addstar
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
Kurisu
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 Top

This Month's Trending Top

This Year's Trending Top

maennchen
: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 Top

benlime
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
munksgaard
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
silverdr
When “normalising” Decimal numbers it’s easy fall into something like this: Decimal.normalize(Decimal.new("10.00")) Decimal.new("1E+1") ...
New
henriquesati
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 Top

Sanjibukai
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
eksperimental
iex> 75000 / 12.5 6.0e3 iex(14)> 75000 / 12.5 |> Float.to_string "6.0e3" It is kind of weird that Elixir...
New
tuvokki
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
Kurisu
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
Sanjibukai
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
wojtekmach
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
Overbryd
I am implementing an application that deals with monetary values. Therefore I use the excellent Decimal library to handle such values. N...
New
CharlesO
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
Qqwy
Hey, everyone! Today I started writing a small library to perform computations with Complex Numbers. (ComplexNum, it is still very much...
New
markdev
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
razuf
Hi everybody, I found a bug or structural problem in Decimal what could have some big impact: wrong calculation (maybe with money!!!) o...
New
charliekelly
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
addstar
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
dimitarvp
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
acrolink
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
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement