RothyBuyak@lemmy.blahaj.zone to 196@lemmy.blahaj.zone · 1 year ago2+2 rulelemmy.blahaj.zoneimagemessage-square8fedilinkarrow-up1236arrow-down11
arrow-up1235arrow-down1image2+2 rulelemmy.blahaj.zoneRothyBuyak@lemmy.blahaj.zone to 196@lemmy.blahaj.zone · 1 year agomessage-square8fedilink
minus-squareplanetaryprotection@midwest.sociallinkfedilinkEnglisharrow-up31·1 year agoProgrammer: 2 + 2 is 3.99999999999999999
minus-squareanton@lemmy.blahaj.zonelinkfedilinkarrow-up28·1 year ago2 + 2 == 4 with any reasonable fixed and floating point format. In ieee 754 floats powers of 2 have a fraction of exactly 1.0 and differing exponents.
Programmer: 2 + 2 is 3.99999999999999999
2 + 2 == 4 with any reasonable fixed and floating point format. In ieee 754 floats powers of 2 have a fraction of exactly 1.0 and differing exponents.