{"slug":"fraction-openverbs-com-v1-from-decimal-ec792b","title":"Convert a decimal string to an exact reduced fraction","host":"fraction.openverbs.com","method":"POST","resource":"https://fraction.openverbs.com/v1/from-decimal","category":"other","description":"Convert a decimal string to an exact reduced fraction. For a repeating decimal, set repeat to the number of trailing fractional digits that repeat (e.g. value='0.1666', repeat=1 → 1/6; value='0.3', repeat=1 → 1/3). A non-numeric value is a clean 400.","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":464,"reported_calls_30d":3,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"repeat":1,"value":"example"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"repeat":{"description":"Count of trailing fractional digits that repeat. Default 0 (terminating).","maximum":1024,"minimum":0,"type":"integer"},"value":{"description":"Decimal number as a string, e.g. '0.75' or '-3.5'.","maxLength":1024,"minLength":1,"type":"string"}},"required":["value"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":464,"error":null}],"description_full":"Convert a decimal string to an exact reduced fraction. For a repeating decimal, set repeat to the number of trailing fractional digits that repeat (e.g. value='0.1666', repeat=1 → 1/6; value='0.3', repeat=1 → 1/3). A non-numeric value is a clean 400.","last_updated":"2026-09-06T08:12:39.397Z","schemes":["exact"]}