cm0002@lemmy.zip to Programmer Humor@programming.dev · 20 days agoMore code = more betterlemmy.zipimagemessage-square25linkfedilinkarrow-up116arrow-down11
arrow-up115arrow-down1imageMore code = more betterlemmy.zipcm0002@lemmy.zip to Programmer Humor@programming.dev · 20 days agomessage-square25linkfedilink
minus-squareGrandwolf319@sh.itjust.workslinkfedilinkarrow-up0·19 days agoHow about x=x-x x++ x++ x++ x++ x++ x++ x++ x++ x++ x++
minus-squareolenkoVD@lemmy.dbzer0.comlinkfedilinkarrow-up0·19 days agoMake sure you initialize x with x=x/x-x/x for better precision
minus-squareoptional@sh.itjust.workslinkfedilinkarrow-up1·15 days agoJust add // @TODO find out why this crashes our application sometimes to fix that issue
How about
x=x-x
x++
x++
x++
x++
x++
x++
x++
x++
x++
x++
Make sure you initialize x with
x=x/x-x/xfor better precisionWhat if it’s already 0?
Just add
// @TODO find out why this crashes our application sometimesto fix that issue