Hacker News new | ask | show | jobs
by jeremiecoullon 1923 days ago
The way to represent negative numbers (page 3 of the manual) is really cool: to do "a - b" you add a to the complement of b (with the complement of b being 2 - |b|).

It feels really similar to modular arithmetic: -3 = 7 (modulo 10)