Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bob1029
on Jan 1, 2022
|
parent
|
context
|
favorite
| on:
Microsoft Exchange stops passing mail due to bug o...
We use decimals for all currency and rate properties. Integer is fine in many cases too.
quesera
on Jan 1, 2022
[–]
Be careful with floats:
20.40 == (20.39 + 0.01) => false
("decimal" can either be colloqually-equivalent to "float", or it can refer to a distinct data type which is supported by some languages and databases. A proper decimal type is currency-safe to use, if available.)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: