Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dheera
on April 5, 2023
|
parent
|
context
|
favorite
| on:
Dang is going to have 65,535 karma points soon
No, if an overflow at 65535 occurs it would be to 0, not negative.
signed 16-bit ints are -32768 to 32767, unsigned 16-bit ints are 0 to 65535
maximilianroos
on April 5, 2023
[–]
<a rare sighting of an int17>
muzani
on April 6, 2023
|
parent
[–]
Why allocate more bits than you ever need?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
signed 16-bit ints are -32768 to 32767, unsigned 16-bit ints are 0 to 65535