Comment

Comment by 01HNNWZ0MV43FF

Makes sense for dollars, but for anything like graphics or physics I'd consider a power of two like 1,024 as the fixed-point factor instead.

My intuition tells me that "x * 1000 / 1000 == x" might not be true for all numbers if you're using floats.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton