Comment

Comment by razighter777

The worst thing that strikes fear into me is seeing floating points used for real world currency. Dear god. So many things can go wrong. I always use unsigned integers counting number of cents. And if I gotta handle multiple currencies, then I'll use or make a wrapper class.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton