Re:Multistate Disagreement over the Length of the Foot to End
by moring on Saturday June 27, 2020 @03:35PM
(#23664053)
Computers can be made to understand base 10 though, if needed. We do so routinely when amounts of money are involved so a cent is a cent, even though 1/100 is nonterminating as a binary fraction.
[ Parent
| on HN ]
Re:Multistate Disagreement over the Length of the Foot to End
by a1369209993 on Saturday June 27, 2020 @04:19PM
(#23664354)
By that logic they can be made to understand base twelve (et al) just as well. And 0x64 cents is perfectly reasonable amount of money, but that's because it's a integer, not a fraction.
Re:Multistate Disagreement over the Length of the Foot to End
by Gibbon1 on Saturday June 27, 2020 @05:55PM
(#23664991)
Brings up someone I read from an old crusty programmer, binary floating point is the wrong tool for most things. It's fine for scientific simulation work. But for everything else it causes no end of problems.
Re:Multistate Disagreement over the Length of the Foot to End
by a1369209993 on Sunday June 28, 2020 @07:16PM
(#23672794)
Floating point, binary or otherwise, is the wrong tool for many things. (Although (not-necessarily-scientific) simulation work is a very broad class of things.) If you're doing anything related to accounting, there is no excuse not to be using integers.