Decimal to Fraction
decimal_to_fractionConverts a terminating or explicitly repeating decimal to an exact simplified fraction, mixed number and decimal display.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"decimal": "0.1(6)"
},
"name": "decimal_to_fraction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decimal | Yes | Decimal: 0.125, 0.(3), 0.1(6), or combining bars on repeating digits. With ... every entered fractional digit repeats. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||