tfmA to Programmer Humor@lemmy.mlEnglish · 2 months agoPython!imagemessage-square58linkfedilinkarrow-up1734arrow-down116cross-posted to: programmer_humor@programming.devprogrammer_humor@programming.dev
arrow-up1718arrow-down1imagePython!tfmA to Programmer Humor@lemmy.mlEnglish · 2 months agomessage-square58linkfedilinkcross-posted to: programmer_humor@programming.devprogrammer_humor@programming.dev
minus-squareOriel Jutty :hhHHHAAAH:@infosec.exchangelinkfedilinkarrow-up8arrow-down1·2 months ago$ python3 -c 'f = (lambda x: x + 0.5 - 0.5); print(f(2**52))' 4503599627370495.5 #python
minus-squareCevilia (she/they/…)@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up12·2 months agoAhh, contrived examples of floating point errors. I haven’t seen those since I asked Javascript to add 0.1 and 0.2 :)
$ python3 -c 'f = (lambda x: x + 0.5 - 0.5); print(f(2**52))' 4503599627370495.5
#python
Ahh, contrived examples of floating point errors. I haven’t seen those since I asked Javascript to add 0.1 and 0.2 :)