Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
orf
· 9y ago · 0 comments
Floats != decimals, and it's good practice to use Decimal I think.
Comments
[–]
renzon
9y ago
It's not good practice. You must use Decimal when precision is important. Example: when dealing with currency, so arithmetic operations don't create or miss cents.