Binary to Decimal Converter
Binary to Decimal Converter is evaluated from Number to Convert and Convert From. The calculation reports Decimal, Binary and Hexadecimal.
Results
About the Binary to Decimal Converter
The calculator uses a multi formula configuration. Each reported value is read as a direct evaluation of the stored rules with the declared field formats and units.
Formula basis:
Binary to decimal: sum of (bit x 2^position) for each bit
Interpret the outputs in the order shown by the result fields. Optional inputs affect only the outputs that depend on those variables.
Formula & How It Works
The calculation applies the following relations exactly as recorded in the metadata: Binary to decimal: sum of (bit x 2^position) for each bit Each output field is produced by substituting the supplied inputs into the relevant relation and then applying the declared rounding or text format.
Worked Examples
Example 1: IPv4 Subnet Mask Conversion
Inputs
With Number to Convert = 11,111,111,111,111,111,957,551,335,342,080 and Convert From = binary (base 2) as the stated inputs, the result is Decimal = 4294967040, Binary = 11111111111111111111111100000000 and Hexadecimal = FFFFFF00. Each value corresponds to the declared output fields.
Example 2: Decimal 255 — Maximum Byte Value
Inputs
With Number to Convert = 255 and Convert From = decimal (base 10) as the stated inputs, the result is Decimal = 0, Binary = 0 and Hexadecimal = 0. Each value corresponds to the declared output fields.
Example 3: ASCII 'A' Character Code
Inputs
With Number to Convert = 65 and Convert From = decimal (base 10) as the stated inputs, the result is Decimal = 0, Binary = 0 and Hexadecimal = 0. Each value corresponds to the declared output fields.
Example 4: Computer Memory — 1 KB
Inputs
With Number to Convert = 1,024 and Convert From = decimal (base 10) as the stated inputs, the result is Decimal = 2, Binary = 10 and Hexadecimal = 2. Each value corresponds to the declared output fields.
Common Use Cases
- Convert binary machine code to decimal
- Understand IP address subnet masks
- Learn number systems for computer science
- Convert decimal to binary for programming