Re:Python rounds float values by converting them to string a...
by tyingq on Wednesday August 28, 2019 @07:04AM
(#20818592)
It seems to just be layman shorthand for storing (not huge) integers as binary isn't lossy.
[ Parent
| on HN ]
Re:Python rounds float values by converting them to string a...
by Dylan16807 on Wednesday August 28, 2019 @07:34AM
(#20818727)
Storing integers as decimal (which computers can do easily) isn't lossy either.
Re:Python rounds float values by converting them to string a...
by viraptor on Wednesday August 28, 2019 @08:08AM
(#20818947)
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)
Re:Python rounds float values by converting them to string a...
by SmellyGeekBoy on Wednesday August 28, 2019 @08:27AM
(#20819070)
Decimal numbers are still "stored as binary" at the silicon level.
Re:Python rounds float values by converting them to string a...
by mondoshawan on Wednesday August 28, 2019 @09:16AM
(#20819429)
Unless you're on an IBM 1401... :D