Click here to Skip to main content
15,902,275 members
Articles / Programming Languages / C#

Large Numbers and base(-2) – WTF?

Rate me:
Please Sign up or sign in to vote.
4.68/5 (18 votes)
9 Sep 2016CPOL9 min read 20.1K   11  
Did you know that there are uses for encoding integers in a negative base? This article shows how this is done along with a simple implementation of arbitrary precision math (numbers with no upper limit).

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) CogniDyne Research
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions