nifty@lemmy.world to Programmer Humor@programming.dev · 9 months agoStop using floatslemmy.worldimagemessage-square84fedilinkarrow-up1786arrow-down135
arrow-up1751arrow-down1imageStop using floatslemmy.worldnifty@lemmy.world to Programmer Humor@programming.dev · 9 months agomessage-square84fedilink
minus-squareBlackmist@feddit.uklinkfedilinkEnglisharrow-up26arrow-down1·9 months agoI know this is in jest, but if 0.1+0.2!=0.3 hasn’t caught you out at least once, then you haven’t even done any programming.
minus-squarelabsin@sh.itjust.workslinkfedilinkarrow-up8·9 months agoIMO they should just remove the equality operator on floats.
minus-squarenexussapphire@lemm.eelinkfedilinkEnglisharrow-up8·9 months agoMe making my first calculator in c.
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up5·9 months agoThat should really be written as the gamma function, because factorial is only defined for members of Z. /s
I know this is in jest, but if 0.1+0.2!=0.3 hasn’t caught you out at least once, then you haven’t even done any programming.
IMO they should just remove the equality operator on floats.
Me making my first calculator in c.
what if i add more =
That should really be written as the gamma function, because factorial is only defined for members of Z. /s