alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2 years agoJavalemmy.worldimagemessage-square68fedilinkarrow-up1576
arrow-up1576imageJavalemmy.worldalphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2 years agomessage-square68fedilink
minus-squarelarvyde@sh.itjust.workslinkfedilinkarrow-up1·2 years agoYea but at those values floating points can’t represent fractions anyway
minus-squareLmaydev@programming.devlinkfedilinkarrow-up1·2 years agoExactly. So if cast to int you’d either get an error or 0 for everything above a certain value.
Yea but at those values floating points can’t represent fractions anyway
Exactly. So if cast to int you’d either get an error or 0 for everything above a certain value.