Hacker News new | ask | show | jobs
by samatman 2341 days ago
This is an excellent point.

When computing around money, you're either working with magnitudes or units.

If you don't know which, you're working with units; use a Decimal.

1 comments

If you are working with units, ordinary binary integers are overwhelmingly better for almost every operation.