Round sig figs
round_sig_figsRound numbers to a specified number of significant figures to ensure correct precision in chemistry and physics calculations.
Instructions
Round a number to a given number of significant figures.
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": {
"value": "<value>",
"sigFigs": "<sigFigs>"
},
"name": "round_sig_figs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The number to round. | |
| sigFigs | Yes | How many significant figures to keep. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |