In mathematics and digital electronics, a binary number is a number expressed in the binary numeral system or base-2 numeral system which represents numeric values using two different symbols: typically 0 (zero) and 1 (one).
The decimal numeral system (also called base-ten and occasionally denary) has ten as its base, which, in decimal, is written 10, as is the base in every positional numeral system.
In mathematics and digital electronics, a hexadecimal number (also base 16, or hex) is a number expressed in the hexadeximal numeral system - a positional numeral system with a radix, or base, of 16.
Decimal number (positive) | Binary number |
---|---|
0 | 0 |
1 | 1 |
2 | 10 |
3 | 11 |
4 | 100 |
5 | 101 |
6 | 110 |
7 | 111 |
8 | 1000 |
9 | 1001 |
10 | 1010 |
11 | 1011 |
12 | 1100 |
13 | 1101 |
14 | 1110 |
15 | 1111 |
16 | 10000 |
32 | 100000 |
64 | 1000000 |
128 | 10000000 |
256 | 100000000 |