Comment on Mimalloc Cigarette: Losing one week of my life catching a memory leak (Rust)parentComments−koverstreet2yIt's somewhat acceptable with double precision floats - never single precision floats.But far better to just use integer cents.−IX-1032yInteger 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).
Comments
It's somewhat acceptable with double precision floats - never single precision floats.
But far better to just use integer cents.
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).