Cambiar base numérica
radix-convertConvierte enteros de cualquier tamaño entre bases 2 y 36 (acepta prefijos 0x, 0o, 0b). Cuándo: un resultado numérico tiene que ser exacto o reproducible y no estimado. No para: convertir enteros 1-3999 a números romanos y viceversa (roman-numeral). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Converts an integer of any size between bases 2-36 (accepts 0x/0o/0b prefixes, underscores and a sign), returning the result and common bases. When: a numeric result has to be exact or reproducible instead of estimated. Not for: converting integers 1-3999 to standard Roman numerals and validating/parses Roman numerals (roman-numeral). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Number in from_base (string; required; up to 1000 chars). | |
| to_base | No | Target base (integer; optional; default 16; min 2; max 36). | |
| from_base | No | Source base (integer; optional; default 10; min 2; max 36). | |
| uppercase | No | Uppercase letters (boolean; optional; default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | No | ||
| octal | No | ||
| binary | No | ||
| result | No | any JSON value | |
| decimal | No |