make-github-pseudonymous-again/js-integer

implement r's complement neg

make-github-pseudonymous-again opened this issue · 1 comments

Implement r's complement neg (2's complement generalized to any radix), it would allow to have 'smart' negative values in any base or at least make the methods of alu behave like C on primitive types for bases 2^n.

See http://www.cs.uwm.edu/~cs151/Bacon/Lecture/HTML/ch03s09.html if lost.