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-up11arrow-down10
arrow-up11arrow-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-squareElectroLisa@lemmy.blahaj.zonelinkfedilinkarrow-up1·9 months agoIf I’m not mistaken 1.75 can be correctly stored as a float, as it consists of 1/2 and 1/4 only
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/
If I’m not mistaken 1.75 can be correctly stored as a float, as it consists of 1/2 and 1/4 only