nifty@lemmy.world to Programmer Humor@programming.dev · 4 months agoStop using floatslemmy.worldimagemessage-square73fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageStop using floatslemmy.worldnifty@lemmy.world to Programmer Humor@programming.dev · 4 months agomessage-square73fedilink
minus-squareBlackmist@feddit.ukcakelinkfedilinkEnglisharrow-up0·4 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-squarenexussapphire@lemm.eelinkfedilinkEnglisharrow-up0·4 months agoMe making my first calculator in c.
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up0·4 months agoThat should really be written as the gamma function, because factorial is only defined for members of Z. /s
minus-squarelabsin@sh.itjust.workslinkfedilinkarrow-up0·4 months agoIMO they should just remove the equality operator on floats.
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.
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
IMO they should just remove the equality operator on floats.