nifty@lemmy.world to Programmer Humor@programming.dev · 1 year agoStop using floatslemmy.worldimagemessage-square17fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1imageStop using floatslemmy.worldnifty@lemmy.world to Programmer Humor@programming.dev · 1 year agomessage-square17fedilink
minus-squareBlackmist@feddit.uklinkfedilinkEnglisharrow-up0·1 year 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-up0·1 year agoIMO they should just remove the equality operator on floats.
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up0·1 year 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.
That should really be written as the gamma function, because factorial is only defined for members of Z. /s
what if i add more =