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-squareKilling_Spark@feddit.delinkfedilinkarrow-up20·2 years agoOnly to 2^54. The amount of integers representable by a long is more. But it can and does represent every int value correctly
minus-squareparlaptie@feddit.delinkfedilinkarrow-up6·2 years ago*long long, if we’re gonna be taking about C types. A long is commonly limited to 32 bits.
minus-squarevoxel@sopuli.xyzlinkfedilinkarrow-up2·edit-22 years agoyou should never be using these types in c anyway, (u?)int(8/16/32/64)_t are way more sane
Only to 2^54. The amount of integers representable by a long is more. But it can and does represent every int value correctly
*long long, if we’re gonna be taking about C types. A long is commonly limited to 32 bits.
Removed by mod
you should never be using these types in c anyway,
(u?)int(8/16/32/64)_t
are way more sane