4 ms·
Sorry, no. If you are doing your accounting in floating point, you are setting yourself up for really strange non-balancing balance sheets. You can do everythin
by sergiosgc 12y ago
Sorry, no. If you are doing your accounting in floating point, you are setting yourself up for really strange non-balancing balance sheets. You can do everything in fixed point.
Remember that fixed point does not mean the point is at the rightmost position. It means it is in a fixed position.
- virmundi 12y agoOr do all of your math in cents. Then you've only got to worry about FP at the displayed end.
- mschuster91 12y agoOf course, yes. But the naive people will start using FP math - so they have to be warned as early as possible. I'm doing all my math in fixed point (eurocent), but that has its drawbacks too if you deal with VAT and have to hit a specific total price given only a VAT rate and a net price... or if you're dealing with gas pumps and that x.xx9 cheating. Or scales, where the law requires more precision...