{"ok":true,"tool":"Decimal to Percent Converter","operation":"convert-decimal-to-percent","description":"Convert a decimal to a percent, or a percent back to a decimal.","method":"POST","endpoint":"/api/decimal-to-percent-converter","webUrl":"https://toolhub-5eo.pages.dev/tools/decimal-to-percent-converter","parameters":{"type":"object","properties":{"value":{"type":"string","description":"The decimal or percent value (a trailing % is allowed)"},"direction":{"type":"string","enum":["to","from"],"description":"\"to\" = decimal to percent, \"from\" = percent to decimal (default \"to\")"}},"required":["value"]},"response":{"type":"object","properties":{"decimal":{"type":"number"},"percent":{"type":"number"},"percentString":{"type":"string"},"result":{"type":"number"}}},"example":{"request":{"value":0.25,"direction":"to"},"response_shape":{"type":"object","properties":{"decimal":{"type":"number"},"percent":{"type":"number"},"percentString":{"type":"string"},"result":{"type":"number"}}}},"howToCall":"POST a JSON body to https://toolhub-5eo.pages.dev/api/decimal-to-percent-converter. Returns {\"ok\":true,\"result\":{...}} on success or {\"ok\":false,\"error\":\"...\"} on failure. No auth, CORS-enabled.","parametersSummary":"  value (string, required) — The decimal or percent value (a trailing % is allowed)\n  direction (string, optional, one of: to|from) — \"to\" = decimal to percent, \"from\" = percent to decimal (default \"to\")","curlExample":"curl -X POST https://toolhub-5eo.pages.dev/api/decimal-to-percent-converter -H \"Content-Type: application/json\" -d '{\"value\":0.25,\"direction\":\"to\"}'"}