logoalt Hacker News

adrian_b • today at 1:01 PM • 1 reply • view on HN

True, but those who do not use decimal floating-point numbers do not use such binary floating-point numbers.

They use binary fixed-point numbers/integers, where such computations are exact, while not having the huge computational overhead of decimal floating-point numbers.


Replies

OGWhales • today at 3:07 PM

Indeed, though this is platform dependent. Mainframes have strong hardware support for decimal fixed-point arithmetic, making it the preferred representation for fixed-scale business data, though conceptually it's very similar to binary fixed-point.

Decimal floating-point is also hardware-supported, so it doesn’t carry the same computational overhead it does on platforms where it must be implemented in software.

➕ show 1 reply