{"id":"decimal-compare","version":"1.0.0","description":"Compare two decimal strings exactly after canonicalization.","supported_operations":["decimal compare","compare decimals","cmp decimal strings"],"unsupported_operations":["ieee754","epsilon","locale"],"semantics":["Input decimal strings: /^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$/.","Reject leading zeros, plus signs, spaces, exponents, bare \".\", trailing \".\", empty, and NaN/Infinity tokens.","At most 40 digits excluding sign and decimal point. At most 18 fractional digits on input.","Canonicalize: strip trailing fractional zeros; drop the decimal point if the fraction vanishes; normalize -0 and -0.0 to \"0\".","Exact decimal arithmetic with BigInt scaled integers. No IEEE-754 intermediates. Never return JSON BigInt.","result is -1, 0, or 1 after canonical numeric compare. 1.0 equals 1."],"limits":{"max_digits":40,"max_scale":18},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["a","b"],"properties":{"a":{"type":"string","minLength":1,"maxLength":44},"b":{"type":"string","minLength":1,"maxLength":44}}},"output_schema":{"type":"object","additionalProperties":false,"required":["result"],"properties":{"result":{"type":"integer","enum":[-1,0,1]}}},"examples":[{"input":{"a":"1.0","b":"1"},"output":{"result":0}},{"input":{"a":"-0.01","b":"0"},"output":{"result":-1}}],"execute_url":"/v1/tools/decimal-compare/versions/1.0.0/execute"}