nifty to Programmer Humor@programming.dev • 10 months agoStop using floatslemmy.worldimagemessage-square84fedilinkarrow-up1792arrow-down135
arrow-up1757arrow-down1imageStop using floatslemmy.worldnifty to Programmer Humor@programming.dev • 10 months agomessage-square84fedilink
minus-square@Blackmist@feddit.uklinkfedilinkEnglish25•10 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-square@nexussapphire@lemm.eelinkfedilinkEnglish8•10 months agoMe making my first calculator in c.
minus-square@labsin@sh.itjust.workslinkfedilink8•10 months agoIMO they should just remove the equality operator on floats.
minus-square@CanadaPluslink5•10 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.
Me making my first calculator in c.
IMO they should just remove the equality operator on floats.
what if i add more =
That should really be written as the gamma function, because factorial is only defined for members of Z. /s