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 ...