Number-base Converter
A positional numeral system uses a base to determine the value of each digit position. The current Number-base Converter has three modes: Convert integer, Binary arithmetic and Hex arithmetic. All three use exact integer arithmetic through BigInt.
Convert integer between supported bases
N=\sum_{i=0}^{k} d_i b^iThe governing equation
| Mode | Inputs | Primary output |
|---|---|---|
| Convert integer | Value; From base; To base | Converted value in the selected destination base |
| Binary arithmetic | First integer; Operation; Second integer | Binary result |
| Hex arithmetic | First integer; Operation; Second integer | Hex result |
Convert integer offers Binary (2), Octal (8), Decimal (10), Hexadecimal (16) and Base 36 choices. Enter a valid integer string for the selected source base. The converter parses the integer exactly and renders it in the selected destination base.
Read the common representations
In Convert integer mode, the converted value is primary. Supporting output includes Decimal, Hexadecimal, Octal and Binary representations when produced by the programmer conversion engine. Invalid digits for the selected source base are rejected.
The hexadecimal number 2A equals 2 × 16 + 10 = 42. Binary 1010 equals 8 + 2 = 10. Place weights matter more than digit appearance.
Binary and hexadecimal arithmetic
Binary arithmetic interprets both entered integers as base 2. Hex arithmetic interprets both as base 16. Choose Add, Subtract, Multiply, Integer divide or Remainder. Division and remainder reject a zero second operand.
| Operation | Meaning |
|---|---|
| Add | First + Second |
| Subtract | First − Second |
| Multiply | First × Second |
| Integer divide | Integer quotient First ÷ Second |
| Remainder | Remainder after integer division |
Arithmetic mode reports the result in its working base as the primary output and also shows Decimal, Binary and Hexadecimal representations. Both operands and the arithmetic result are handled as integers; integer division does not return a fractional quotient.
Exactness and signed values
BigInt avoids floating-point rounding for these integer workflows. Signed integer strings are supported by the parser when they are valid for the selected radix.
Binary maps directly to bit patterns; hexadecimal groups four binary bits per digit; octal groups three bits; decimal is conventional for ordinary counting.
Quick answers
Which bases can Convert integer select?
The current selectors provide Binary (2), Octal (8), Decimal (10), Hexadecimal (16), and Base 36.
What operations are available in Binary arithmetic and Hex arithmetic?
Add, Subtract, Multiply, Integer divide and Remainder.
Are large integers rounded?
No. The integer workflows use BigInt for exact parsing and arithmetic.
Why can integer division differ from ordinary calculator division?
This mode returns the integer quotient; use Remainder separately when you need the leftover part.
