|
|
|
|
|
by jwmerrill
1650 days ago
|
|
> All you need to do is ensure that your calculations are in no danger of blowing past the max significant digits If you have a lot of control of the scale of the numbers you’re computing with, you could use fixed point instead of floating point. The situations that make it useful to have a floating point (rather than fixed point) are also the situations where addition isn’t associative. |
|
You could, but why would you go to the extra complication (and ensuing bugs) of adding an implied fixed point to integers when a decimal float type gives it to you for free?
As I said, it's not a silver bullet; it's just for the majority case (much like 32 and 64-bit integers are for the majority case when dealing with whole numbers).