Comment

Comment by eru

I'm not quite sure why anyone would need a 'decimal' data type for currencies?

Couldn't you just express everything in eg cents, if you want that?

Otherwise, many languages also have libraries for working with exact rational numbers.

parent eru 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton