number_converter
Convert numbers between bases 2-36, format as scientific notation or fractions. Adjust precision for decimal places.
Instructions
Brief description: Number format conversion tool, supporting base conversion, scientific notation, etc.
Examples:
number_converter(number='255', from_base=10, to_base=16)
number_converter(number='1010', from_base=2, to_base=10)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"number": "<number>"
},
"name": "number_converter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | The number to convert (provided as a string) | |
| from_base | No | Source base. Range 2-36 | |
| to_base | No | Target base. Range 2-36 | |
| operation | No | Type of conversion operation. Supports: 'convert'(base conversion), 'format'(formatting), 'scientific'(scientific notation), 'fraction'(fraction form) | convert |
| precision | No | Precision. Number of decimal places for scientific/engineering notation |