News for hackers. Stuff that matters.
Re:Multistate Disagreement over the Length of the Foot to End by a1369209993 on Saturday June 27, 2020 @03:28PM (#23664010)
> a system computers understand

Um, what? Computers understand base 2 (or 16 for compactness), not base 10. A centimeter is not 0.00999999977648258209228515625 meters.

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.
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.
Re:Multistate Disagreement over the Length of the Foot to End by manquer on Saturday June 27, 2020 @08:11PM (#23665736)
There are problems of fractional arithmetic in any base including binary. binary fractions are not base10 fractions and fraught with rounding errors, one more reason to not to use fractional arithmetic .

The U.S. foot mentioned in the article is defined as 1200/3937 of a meter which is 0.304800609601... depending on the precision you want the number will keep changing.

In Imperial you will find a lot of unit conversions like this which will need fractional arithmetic in base 10 like a foot is 1/3 yard etc. You will not find that in SI units as the base(10) and unit conversions (10) are the same making the definitions precise and avoid fractions between unit conversions