base_convert
Convert integer strings between binary, octal, decimal, and hexadecimal bases, with support for negative values via 32-bit two's complement.
Instructions
When: convert an integer string between bases 2/8/10/16 (32-bit two's complement fixed). Params: value (digit string, no leading '-'; use FFFFFFFF-style for negatives); from_base, to_base in {2,8,10,16}. Example: value="FF", from_base=16, to_base=10.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| to_base | Yes | ||
| from_base | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |