Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: