Base Conversion Formula:
From: | To: |
Base conversion is the process of changing a number from one base (or radix) to another. Number bases represent numbers using different sets of digits, with the most common being base 10 (decimal), base 2 (binary), and base 16 (hexadecimal).
The calculator uses the PHP base_convert function:
Where:
Explanation: The function converts the number between different bases, handling digits 0-9 and letters a-z (case insensitive) for bases 11-36.
Details: Common bases include binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Each has specific applications in computing and mathematics.
Tips: Enter the number to convert, its current base (2-36), and the target base (2-36). The number can include digits 0-9 and letters a-z (case insensitive) for bases 11-36.
Q1: What is the maximum base supported?
A: The calculator supports bases from 2 to 36 (digits 0-9 plus letters a-z).
Q2: Are negative numbers supported?
A: No, the base_convert function only handles positive numbers.
Q3: How are fractional numbers handled?
A: The calculator only converts integer parts of numbers.
Q4: What happens if I enter invalid digits for a base?
A: The calculator will return an error message.
Q5: Can I convert between arbitrary bases?
A: Yes, you can convert between any two bases from 2 to 36.