Hacker News new | ask | show | jobs
by IX-103 660 days ago
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).