alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2 years agoJavalemmy.worldimagemessage-square93fedilinkarrow-up1579arrow-down148
arrow-up1531arrow-down1imageJavalemmy.worldalphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2 years agomessage-square93fedilink
minus-squareAcetamide@lemmy.worldlinkfedilinkarrow-up15·2 years agoAFAIK most typed languages have this behaviour.
minus-squareLmaydev@programming.devlinkfedilinkarrow-up4·2 years agoBecause ints are way smaller. Over a certain value it would always fail.
minus-squarelarvyde@sh.itjust.workslinkfedilinkarrow-up1·1 year agoYea but at those values floating points can’t represent fractions anyway
AFAIK most typed languages have this behaviour.
Because ints are way smaller. Over a certain value it would always fail.
Yea but at those values floating points can’t represent fractions anyway