alphacyberranger to Programmer Humor@programming.devEnglish • 1 year agoJavalemmy.worldimagemessage-square77fedilinkarrow-up1593
arrow-up1593imageJavalemmy.worldalphacyberranger to Programmer Humor@programming.devEnglish • 1 year agomessage-square77fedilink
minus-squarelarvydelinkfedilink1•1 year agoYea but at those values floating points can’t represent fractions anyway
minus-square@Lmaydev@programming.devlinkfedilink1•1 year 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.