3 ms·
Binary Coded Decimal allows for perfect representation of numbers by not restricting you to 4 or 8 bytes. It trades speed and memory efficiency for precision an
by dahfizz 4y ago
Binary Coded Decimal allows for perfect representation of numbers by not restricting you to 4 or 8 bytes. It trades speed and memory efficiency for precision and simplicity.
https://en.m.wikipedia.org/wiki/Binary-coded_decimal https://en.m.wikipedia.org/wiki/Binary-coded_decimal
- dmurray 4y agoIt allows, like all encodings, a perfect representation of some subset of real numbers but not the rest. In particular it perfectly represents numbers which are commonly used in modern commerce, like 19.99 or 1.648 (the current price per litre of fuel near me). It's not great at other numbers like pi or 1/240.