fossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 3 days agoListen here, Little Dickymander.xyzimagemessage-square87fedilinkarrow-up1458arrow-down16
arrow-up1452arrow-down1imageListen here, Little Dickymander.xyzfossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 3 days agomessage-square87fedilink
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·1 day 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·2 days ago0.1 + 0.2 = 0.30000000000000004
minus-squaregandalf_der_12te@discuss.tchncs.delinkfedilinkEnglisharrow-up1·2 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