Float Round
float_roundRound an exact decimal or fraction to binary32 or binary64. Modes are nearestEven, towardZero, towardPositive, and towardNegative. Ties in nearestEven go to an even fraction bit. Overflow becomes infinity, or the largest finite value when the mode points toward zero. underflow is set only when the result is subnormal or zero and not exact. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/float-round
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>"
},
"name": "float_round"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | nearestEven | |
| value | Yes | ||
| width | No |