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. parent 01HNNWZ0MV43FF 2 years ago
My intuition tells me that "x * 1000 / 1000 == x" might not be true for all numbers if you're using floats.