Comment on [deleted]
So achtually -1 "
-2,147,483,649, actually. A signed int32 can represent -1 just fine.
Yeah, unsigned ofc.
Unsigned jumps from 0 to 4,294,967,295. An overflow won’t get you to 2,147,483,647 unless you have a 31-bit uint for some reason.
Having integers with amount of bits indivisible by 2, let alone 8, is a nice feature to have in a language, I deed
kkj@lemmy.dbzer0.com 1 month ago
-2,147,483,649, actually. A signed int32 can represent -1 just fine.
Valmond@lemmy.dbzer0.com 1 month ago
Yeah, unsigned ofc.
kkj@lemmy.dbzer0.com 1 month ago
Unsigned jumps from 0 to 4,294,967,295. An overflow won’t get you to 2,147,483,647 unless you have a 31-bit uint for some reason.
sukhmel@programming.dev 1 month ago
Having integers with amount of bits indivisible by 2, let alone 8, is a nice feature to have in a language, I deed