ugjka@lemmy.world to Linux@lemmy.mlEnglish · 9 months agoWhy is Gnome fractional scaling 1.7518248558044434 instead of 1.75?unix.stackexchange.comexternal-linkmessage-square2fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1external-linkWhy is Gnome fractional scaling 1.7518248558044434 instead of 1.75?unix.stackexchange.comugjka@lemmy.world to Linux@lemmy.mlEnglish · 9 months agomessage-square2fedilink
minus-square𝘋𝘪𝘳𝘬@lemmy.mllinkfedilinkarrow-up0·9 months agoFor the same reason a lot of programming languages can’t calculate 0.1+0.2 properly. There’s a website explaining it: https://0.30000000000000004.com/
minus-squareMotoAsh@lemmy.worldlinkfedilinkarrow-up0·9 months agoFloating point error? Yeaahhh no. No. Just… no. That is NEVER as big as 0.01 unless the number is also insanely massive. The error is relative in scale. It’s not magically significant fractions off.
For the same reason a lot of programming languages can’t calculate 0.1+0.2 properly.
There’s a website explaining it: https://0.30000000000000004.com/
Floating point error? Yeaahhh no. No. Just… no. That is NEVER as big as 0.01 unless the number is also insanely massive.
The error is relative in scale. It’s not magically significant fractions off.