calculate_decimal
Perform high-precision decimal arithmetic on string inputs to avoid IEEE-754 rounding errors. Set precision from 1 to 200 significant digits for accurate add, divide, sqrt, and other operations.
Instructions
Perform high-precision decimal arithmetic without IEEE-754 surprises. Inputs are decimal strings and precision can be 1-200 significant digits.
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": {
"operation": "<operation>",
"a": "<a>"
},
"name": "calculate_decimal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | No | ||
| operation | Yes | ||
| precision | No |