If it starts with 0x, treat it as hex. If it starts with 0b, treat it as binary. If it’s only digits, treat it as decimal. Otherwise, treat it as text. Convert to other formats Decimal → Hex → Binary ...
Decimal notation describes numbers using the digits 1 through 10. Binary notation describes them using just two digits, 1 and 0, where each bit in a string represents a power of 2. The right-most bit ...