| ▲ | glimshe 2 hours ago | |||||||||||||
The rounding behavior with true decimals is easy to control and understand across number magnitudes and doesn't suffer from platform specific quirks like floats/doubles. The article's images clearly show the rounding error mess your get without decimals. | ||||||||||||||
| ▲ | sobriquet9 44 minutes ago | parent | next [-] | |||||||||||||
There's still catastrophic cancellation, where subtracting two large numbers that are very close results in an answer with reduced precision. | ||||||||||||||
| ▲ | amelius 2 hours ago | parent | prev [-] | |||||||||||||
But the rounding errors are way down in the nano-cents. Not worrying about them is cheaper! | ||||||||||||||
| ||||||||||||||