The Denary system (or decimal) is a base-10 positional numeral system that uses ten distinct digits from to . Each position in a denary number represents a power of , such as (units), (tens), and (hundreds).
The Binary system is a base-2 system that uses only two digits: and , often referred to as bits. In this system, each position represents a power of , starting from on the far right and increasing as you move to the left.
Understanding the relationship between these bases is essential for computer science because hardware logic gates operate on two states (on/off), which are represented mathematically by binary values.
The Positional Principle dictates that the value of a digit is determined by its position relative to the radix point. In binary, each step to the left represents a doubling of value (), while in denary, it represents a ten-fold increase ().
Binary numbers are typically grouped into Bytes (8 bits), which allows for a range of values from to . This fixed-width representation is a standard unit of data storage in computing systems.
The maximum value for a binary number with bits is calculated using the formula . For example, a 4-bit nibble can represent values up to .
To convert from binary to denary, you simply sum the place values of all positions where a '1' is present. This is a direct application of the positional notation formula.
For a binary string , the denary value is calculated as:
| Feature | Denary (Base 10) | Binary (Base 2) |
|---|---|---|
| Digits Used | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 | 0, 1 |
| Place Value Multiplier | ||
| Human/Machine Use | Primary for human communication | Primary for computer processing |
| Complexity | Fewer digits for large numbers | More digits for large numbers |
The Subtraction Method is often faster for mental math with small numbers, whereas the Division Method is more algorithmic and less prone to error when dealing with very large denary values.