fossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 4 days agoListen here, Little Dickymander.xyzimagemessage-square91fedilinkarrow-up1467arrow-down16
arrow-up1461arrow-down1imageListen here, Little Dickymander.xyzfossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 4 days agomessage-square91fedilink
minus-squareRose@slrpnk.netlinkfedilinkEnglisharrow-up5·3 days agoComputer science: 2+2=4 (for integers at least; try this with floating point numbers at your own peril, you absolute fool)
minus-squaresocsa@piefed.sociallinkfedilinkEnglisharrow-up1·2 days agoFreshmen engineer: wow floating point numbers are great. Senior engineer: actually the distribution of floating point errors is mindfuck. Professional engineer: the mean error for all pairwaise 64 bit floating point operations is smaller than the Planck constant.
minus-squarecally [he/they]@pawb.sociallinkfedilinkEnglisharrow-up5·3 days ago0.1 + 0.2 = 0.30000000000000004
minus-squaregandalf_der_12te@discuss.tchncs.delinkfedilinkEnglisharrow-up1·3 days agocomparing floats for exact equality should be illegal, IMO
Computer science: 2+2=4 (for integers at least; try this with floating point numbers at your own peril, you absolute fool)
Freshmen engineer: wow floating point numbers are great.
Senior engineer: actually the distribution of floating point errors is mindfuck.
Professional engineer: the mean error for all pairwaise 64 bit floating point operations is smaller than the Planck constant.
0.1 + 0.2 = 0.30000000000000004
comparing floats for exact equality should be illegal, IMO