alphacyberranger to Programmer Humor@programming.devEnglish • 11 months agoJavalemmy.worldimagemessage-square76fedilinkarrow-up1579arrow-down148
arrow-up1531arrow-down1imageJavalemmy.worldalphacyberranger to Programmer Humor@programming.devEnglish • 11 months agomessage-square76fedilink
minus-squarelarvydelinkfedilink1•11 months agoYea but at those values floating points can’t represent fractions anyway
minus-square@Lmaydev@programming.devlinkfedilink1•11 months 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.