Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sanxiyn
on May 31, 2018
|
parent
|
context
|
favorite
| on:
Signed Integers Are Two’s Complement
The point is that signed integers are two's complement. After all, it is the title.
barrkel
on May 31, 2018
[–]
Naive overflow checks are often done by adding two positive numbers together and checking if the result is negative. If wrapping is undefined, this no longer works, and the overflow check may be eliminated.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: