4 ms·
Storing integers as decimal (which computers can do easily) isn't lossy either.
by Dylan16807 7y ago
Storing integers as decimal (which computers can do easily) isn't lossy either.
- viraptor 7y agoI believe that's where "natively" comes in. If you store it in binary, you can operate on the values as numbers. If you do some decimal conversion, it's a blob of data. (Yes, there are BCD instructions but they're massively limited)
- SmellyGeekBoy 7y agoDecimal numbers are still "stored as binary" at the silicon level.
- mondoshawan 7y agoUnless you're on an IBM 1401... :D
- Merrill 7y agoz14 and Power 9 appear to support decimal integer and float. Does Python on those processors support their use?
- tyingq 7y agoI meant as opposed to floats, precision loss, etc.