This Week's Trending
This Month's Trending
This Year's Trending
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
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 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
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
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
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
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 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
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
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
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:
Sub Categories:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #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
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








