# Use Fixed-Points To compute decimals, there are two options. One is fixed-point and the other is floating-point. Instead of explaining, I'll give you examples. Ex) $123.45 Fixed: 12345 cents Float: $(1.2345 * 10^2) Ex) $123.45 + $67.89 Fixed: 12345 cents + 6789 cents Float: $(1.2345 * 10^2) + $(6.789 * 10^1) Ex) 123.45 * 67.89 Fixed: (12345 * 6789 / 100) cents Float: (1.2345 * 6.789) * 10^(2+1) You might already understand why floating-point sucks. It's complex. Because of that, it's also slow and more error-prone. So use fixed points whenever you can.