Ternary Digit
ternary_digitThe balanced ternary digit of n in place, counting from 0 at the right, as -1, 0, or 1. For 5, which is "1TT", place 0 and place 1 are -1 and place 2 is 1. A place past the end is 0. n runs from 0 to 999999999999999 and place runs from 0 to 40. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/ternary-digit
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": {
"n": "<n>",
"place": "<place>"
},
"name": "ternary_digit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | ||
| place | Yes |