﻿ Number list: Decimal, binary, octal, hexadecimal, BCD, base-1 to base-36

# Number list

This page lists decimal, binary, octal and hexadecimal numbers. In addition, the page lists numbers in several unusual number systems: unary (base-1), ternary (or trinary, base-3), quaternary (base-4), quinary (base-5), senary (base-6), septenary (base-7), undecimal (base-11), dozenal (or duodecimal, base-12), vicesimal (base-20) and hexatrigesimal (base-36). BCD numbers and bijective bases are also covered.

Decimal (base-10), binary (base-2), octal (base-8) and hexadecimal (base-16) numbers are commonly used in computing. Binary coded digitals (BCD) have also been used in computing. The other number systems are far less common.

## Dec, Bin, Oct and Hex

BaseSystemDigits
10Decimal (dec)0123456789
2Binary (bin)01
8Octal (oct)01234567
16Hexa­decimal (hex)0123456789ABCDEF

Binary numbers can be written as `11111111b` or `11111111'b`. For clarity, binary numbers can be grouped. On this page, the groups are 4 bits each. Octals are often written with a zero prefix (`07777`). Hexadecimal numbers can be written in several ways: `0xFF`, `\xFF`, `&HFF`, `\$FF`, `FFh`.

0 to in decimal, binary, octal and hexadecimal.

## Base-3 to Base-7

BaseSystemDigits
3Ternary or trinary012
4Quaternary0123
5Quinary01234
6Senary012345
7Septenary0123456

0 to in base-3, base-4, base-5, base-6 and base-7.

## Base-11, 12, 20 and 36

BaseSystemDigits
11Undecimal0123456789A
12Dozenal or duodecimal0123456789AB
20Vicesimal0123456789ABCDEFGHIJ
36Hexatrigesimal0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ

0 to in base-11, base-12, base-20 and base-36.

## Unary Numbers

BaseSystemDigits
1Unary1

0 to in decimal and unary.

## Binary Coded Decimal

BaseSystemDigits
2Binary Coded Decimal (BCD)01
2Binary01

Binary Coded Decimal represents each decimal digit in 4 bits. BCD comes in several variants. This variant is known as Simple BCD or BCD 8421.

0 to in BCD and regular binary.

## Bijective Bases

BaseSystemDigits
2Bijective base-212
10Bijective base-10123456789A
26Bijective base-26A-Z

In bijective bases there is no zero digit. Excel uses bijective base-26 for column names.

0 to in bijective bases.

The numbers are listed with a script, which you can view as a flow chart pdf. Create flow charts of your own code with Visustin.