nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agoI wishi.imgur.comimagemessage-square169fedilinkarrow-up1866arrow-down115
arrow-up1851arrow-down1imageI wishi.imgur.comnave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agomessage-square169fedilink
minus-squarehomura1650@lemmy.worldlinkfedilinkarrow-up2·edit-21 year agoNo. The alternative is to not use a float. Testing if a float is even simply does not make sense. Even testing two floats for equality rarely makes sense. What is the correct output of isEven((.2 + .4) ×10) Hint: (.2 + .4) x 10 != 6
No. The alternative is to not use a float. Testing if a float is even simply does not make sense.
Even testing two floats for equality rarely makes sense.
What is the correct output of isEven((.2 + .4) ×10)
Hint: (.2 + .4) x 10 != 6