Latest #decimal Threads Top

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

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

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

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
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
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
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
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
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
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
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
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement