# Negabinary Numbers to Decimal

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

The negabinary representation of a number is its representation using base . Similarly, as with the ordinary binary number base, negabinary uses the digits 0 and 1, the difference being in its use of powers of to convert a negabinary number to its decimal equivalent. This Demonstration illustrates the steps of the conversion of a negabinary number into decimal. You choose a decimal number; the program converts it to negabinary and back to decimal.

[more]
Contributed by: Jaime Rangel-Mondragon (March 2011)

Open content licensed under CC BY-NC-SA

## Snapshots

## Details

[1] M. Gardner, *Knotted Doughnuts and Other Mathematical Entertainments*, New York: W.H. Freeman, 1986.

[2] D. E. Knuth, *The Art of Computer Programming, Vol. 2: Seminumerical Algorithms*, 3rd ed., Reading, MA: Addison–Wesley, 1998.

[3] M. Szudzik,"Programming Challenge: A*Mathematica*Programming Contest."

## Permanent Citation