Y
Hacker News
new
|
ask
|
show
|
jobs
by
tyingq
2490 days ago
It seems to just be layman shorthand for storing (not huge) integers as binary isn't lossy.
1 comments
Dylan16807
2490 days ago
Storing integers as decimal (which computers can do easily) isn't lossy either.
link
viraptor
2490 days ago
I 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)
link
SmellyGeekBoy
2490 days ago
Decimal numbers are still "stored as binary" at the silicon level.
link
mondoshawan
2490 days ago
Unless you're on an IBM 1401... :D
link
Merrill
2490 days ago
z14 and Power 9 appear to support decimal integer and float. Does Python on those processors support their use?
link
tyingq
2490 days ago
I meant as opposed to floats, precision loss, etc.
link