Number Systems and Base Conversion Principles
Fundamentals of Number Systems
In digital systems and mathematics, a number system is a structured framework used to express quantities through a set of symbols and mathematical rules. Most standard number systems are positional, meaning that the specific position of a digit within a sequence determines its weighted contribution to the total numerical value. The foundational parameter of any positional number system is its base or radix, denoted as . In a system with radix , the total number of unique symbols or digits available is exactly equal to , and these digits range in value from up to .
The most widely recognized positional system in human daily life is the decimal number system, which operates with a base of . The available digits in the decimal system are , and digit positions correspond to powers of . In contrast, electronic digital systems primarily utilize the binary number system due to its binary physical implementation. The binary system operates with a base of , utilizing only two distinct binary digits, or bits, which are and , with positional weights defined by powers of .
Beyond decimal and binary, digital computing frequently employs octal and hexadecimal number systems as human-readable representations of binary sequences. The octal number system has a base of and uses eight unique digits ranging from to , with positional weights expressed as powers of . The hexadecimal number system uses a base of and requires sixteen distinct symbols. To represent values above using single characters, hexadecimal extends the standard decimal digits with the capital alphabetic letters , which represent the decimal values respectively. The positional weights in hexadecimal are powers of .
Number systems can also be constructed for any arbitrary radix following the exact same positional structure. For example, a Base- number system operates with a base of , offering seven distinct digits from to with positional weights evaluated in powers of . Similarly, a Base- number system operates with a base of , employing digits with weights in powers of . This fundamental format applies consistently regardless of the specific base selected.
Standard Base Representation and Digit Mapping
Understanding the direct equivalence between binary, octal, decimal, and hexadecimal representations for initial non-negative integers provides essential context for computer arithmetic and base conversions. Because four binary bits can represent unique combinations, a single hexadecimal digit perfectly corresponds to a four-bit binary block, known as a nibble.
For the decimal value , the binary equivalent is , octal is , and hexadecimal is . For decimal , the representations are binary , octal , and hexadecimal . Decimal converts to binary , octal , and hexadecimal . Decimal corresponds to binary , octal , and hexadecimal . Decimal translates to binary , octal , and hexadecimal . Decimal yields binary , octal , and hexadecimal . Decimal evaluates to binary , octal , and hexadecimal . Decimal equals binary , octal , and hexadecimal .
When numerical values reach , octal notation rolls over into two digits because octal only contains symbols up to . Consequently, decimal is represented as binary , octal , and hexadecimal . Decimal becomes binary , octal , and hexadecimal . At decimal , hexadecimal introduces alphabetical notation, yielding binary , octal , and hexadecimal . Decimal corresponds to binary , octal , and hexadecimal . Decimal translates to binary , octal , and hexadecimal . Decimal converts to binary , octal , and hexadecimal . Decimal gives binary , octal , and hexadecimal . Finally, decimal corresponds to binary , octal , and hexadecimal .

Base-R to Decimal Conversion Mechanics
Converting a number expressed in any arbitrary source base into its equivalent decimal (base ) representation relies on evaluating the polynomial expansion of the positional weighted sum. The general formula for converting a number from base to decimal is expressed as:
In this summation, each digit of the source number is multiplied by the base raised to the power of its position index. Positions for integer digits are indexed starting at immediately to the left of the radix point and increment by for each position moving leftwards (). Positions for fractional digits are indexed starting at immediately to the right of the radix point and decrement by for each position moving rightwards ().
To demonstrate this mechanism, consider converting the binary number to decimal. The positional expansion multiplies each bit by its corresponding power of :
Evaluating these individual terms yields:
A second example converts the octal number to decimal by evaluating powers of :
Computing each weighted product gives:
A third example involves converting the hexadecimal number to decimal. The letter is substituted with its decimal numerical equivalent of :
Evaluating these terms produces:
A fourth example converts a number from an arbitrary base, such as , into decimal using powers of :
Calculating the positional terms yields:
Decimal to Base-R Conversion Procedures
Converting a decimal number into a target base requires separate computational techniques for the whole integer portion and the fractional portion. Integer conversion uses repeated division by the target base , whereas fractional conversion uses repeated multiplication by the target base r$.\n\nTo convert a decimal integer to base rr0r^0r sequence.\n\nTo convert (43)_{10}22 is performed:\n\n43 / 2 = 21 \quad \text{remainder } 1 \quad (\text{LSB})\n\n21 / 2 = 10 \quad \text{remainder } 1\n\n10 / 2 = 5 \quad \text{remainder } 0\n\n5 / 2 = 2 \quad \text{remainder } 1\n\n2 / 2 = 1 \quad \text{remainder } 0\n\n1 / 2 = 0 \quad \text{remainder } 1 \quad (\text{MSB})\n\nCollecting the remainders from MSB to LSB gives (101011)_2$.

To convert a decimal fraction to base , repeated multiplication by is used. The fractional number is multiplied by , creating a product with an integer part and a fractional part. The integer portion (the carry) is extracted and recorded, while the remaining fractional part is multiplied by in the next step. This sequence continues until the fractional product reaches exactly or until the desired degree of precision is achieved. The carried integer digits form the converted fractional answer. In fractional conversion, the first carry produced represents the Most Significant Bit (MSB), placed immediately after the radix point, and the last carry produced represents the Least Significant Bit (LSB).
To convert to binary, successive multiplication by is performed:
Extracting the carries from MSB to LSB produces , so . If a decimal fractional part never terminates at during multiplication, standard practice is to compute to steps and append ellipsis dots to indicate infinite extension.

When converting a full decimal number containing both integer and fractional components, such as , the integer and fractional procedures are applied separately to the respective parts. Combining the previously calculated results yields . To convert decimal numbers to any other arbitrary target base , the identical algorithms are executed using as the divisor for division and multiplier for multiplication.
General Base-to-Base Conversion Strategies
When converting a number directly between two non-decimal bases, such as converting from base to base , Decimal (base ) serves as a universal intermediate bridging step. The standard two-step conversion strategy is structured as follows:
First, the original number in base is converted to decimal by calculating its weighted positional expansion sum. Second, the resulting decimal value is converted to base by performing repeated division on the integer portion and repeated multiplication on the fractional portion using target base N_2$.\n\nTo illustrate this two-step process, consider converting (854.5)_93$.
Step 1 consists of converting to Decimal (base ) using polynomial expansion in powers of :
Step 2 consists of converting the decimal value into base . For the integer component , repeated division by is executed:
Reading the remainders from MSB (Digit ) to LSB (Digit ) yields the integer base- sequence (221211)_3$.\n\n\n\nFor the fractional component (0.6)_{10}3 is executed:\n\n0.6 \times 3 = 1.8 \quad \text{carry } 1\n\n0.8 \times 3 = 2.4 \quad \text{carry } 2\n\n0.4 \times 3 = 1.2 \quad \text{carry } 1\n\n0.2 \times 3 = 0.6 \quad \text{carry } 0\n\n0.6 \times 3 = 1.8 \quad \text{carry } 1\n\n0.8 \times 3 = 2.4 \quad \text{carry } 2\n\nReading the carries in chronological order gives the non-terminating fractional representation (.121012…)_3$. Combining the integer and fractional parts yields the final solution (854.5)_9 = (221211.121012...)_3$.\n\n# Rationale for Using Binary in Digital Systems\n\nBinary representation serves as the universal foundational architecture across all modern electronic computing and digital communication systems. The decision to construct computer hardware exclusively around base-2 binary logic rather than higher decimal or analog bases is driven by several fundamental engineering and mathematical advantages.\n\nFirst, binary system architecture relies on only two distinct physical states (01). This binary simplicity drastically streamlines physical hardware design, making integrated circuits, logic gates, and microprocessors significantly simpler, smaller, and more cost-effective to manufacture at scale.\n\nSecond, binary systems exhibit exceptional resistance to physical signal noise. Because a circuit only needs to distinguish between two discrete voltage levels (such as high and low voltage representing 10), wide voltage thresholds can be established. This physical margin minimizes errors caused by voltage fluctuations, thermal noise, and signal degradation during data processing and transmission.\n\nThird, digital hardware circuits operating on binary logic are straightforward to construct using semiconductor transistors functioning as binary switches. A transistor can easily be driven between complete saturation (ON state, representing binary 10$$), avoiding the complex analog calibration required to maintain intermediate signal levels.
Fourth, binary data representations facilitate efficient and straightforward error detection and error correction techniques. Protocols such as parity bits, Hamming codes, and cyclic redundancy checks (CRC) rely on simple binary logic operations to identify and correct bit corruption in transmission and storage.
Fifth, Boolean algebra provides a comprehensive and rigorous mathematical framework designed specifically around binary variables. Boolean logic equations enable hardware engineers to mathematically model, simplify, and optimize complex digital logical circuits before physical hardware implementation.
Sixth, binary representation simplifies physical computer memory and storage architecture. Memory cells in magnetic drives, optical media, and solid-state drives (SSD) can be reliably engineered to store single binary bits by representing clean ON/OFF, charged/uncharged, or magnetized/demagnetized states.