Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
Dylan16807
6y ago
0 comments
Share
Storing integers as decimal (which computers can do easily) isn't lossy either.
0 comments
default
newest
oldest
viraptor
6y 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)
SmellyGeekBoy
6y ago
Decimal numbers are still "stored as binary" at the silicon level.
mondoshawan
6y ago
Unless you're on an IBM 1401... :D
Merrill
6y ago
z14 and Power 9 appear to support decimal integer and float. Does Python on those processors support their use?
tyingq
6y ago
I meant as opposed to floats, precision loss, etc.
j
/
k
navigate · click thread line to collapse