number_base_convert
Convert numbers between bases: decimal, binary, octal, hexadecimal, or any base 2–36. Auto-detects 0x, 0b, 0o prefixes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Number to convert (e.g., "255", "0xFF", "0b1010", "0o77") | |
| to_base | No | Target base 2–36 (omit to get all common bases) | |
| from_base | No | Source base 2–36 (auto-detects prefix if omitted) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| octal | No | ||
| binary | No | ||
| result | No | ||
| decimal | No | ||
| to_base | No | ||
| from_base | No | ||
| hexadecimal | No |