Rounding Calculator
round_decimalRound decimal strings exactly to decimal places, tens, hundreds or other powers of ten. Choose half away from zero or half even, including negative ties.
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": {
"text": "-2.5",
"places": 0,
"tieMode": "half-even"
},
"name": "round_decimal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Up to 200 decimal digits with optional exponent -200 through 200. | |
| places | No | Decimal places; negative values round to tens, hundreds etc.; default 0. | |
| tieMode | No | Exact halfway rule; default half-away. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||