Lends Math Convert Decimals Exact
lends_math_convert_decimals_exactConvert raw token amounts between decimal scales, returning null if downscaling is inexact. Ensures only exact conversions are used when adjusting units by decimal differences.
Instructions
Convert raw units between decimal scales, returning null if downscaling is inexact.
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": {
"amount": "<amount>",
"fromDecimals": "<fromDecimals>",
"toDecimals": "<toDecimals>"
},
"name": "lends_math_convert_decimals_exact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| toDecimals | Yes | ||
| fromDecimals | Yes |