Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
koverstreet
on Aug 21, 2024
|
parent
|
context
|
favorite
| on:
Mimalloc Cigarette: Losing one week of my life cat...
It's somewhat acceptable with double precision floats - never single precision floats.
But far better to just use integer cents.
IX-103
on Aug 21, 2024
[–]
Integer cents implies a specific rounding mode (truncation). That's probably not what you should be using. Floating point cents gets the best of both worlds (if you set the right rounding mode).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
But far better to just use integer cents.