alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agoJavalemmy.worldimagemessage-square75fedilinkarrow-up1503arrow-down137
arrow-up1466arrow-down1imageJavalemmy.worldalphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agomessage-square75fedilink
minus-squaredisencentivized@programming.devlinkfedilinkEnglisharrow-up4·1 year agoWhy not just return a long?
minus-squarethegamer@burggit.moelinkfedilinkarrow-up2·1 year agoA double could also be NaN and any operations with NaN should return NaN afaik
minus-squareBeanie@programming.devlinkfedilinkarrow-up2·1 year agodoubles can hold numbers way larger than even 64-bit ints
Why not just return a long?
A double could also be NaN and any operations with NaN should return NaN afaik
doubles can hold numbers way larger than even 64-bit ints