{"slug":"code-halowerk-com-v1-units-calc-1a871c","title":"Evaluate unit-aware arithmetic and conversions such as \"5 km / 2 h to m/s\" with ","host":"code.halowerk.com","method":"POST","resource":"https://code.halowerk.com/v1/units-calc","category":"code","description":"Evaluate unit-aware arithmetic and conversions such as \"5 km / 2 h to m/s\" with strict dimension checking. Uses the mathjs unit system (SI and common imperial units, prefixes, derived units) to evaluate an expression or convert a value from one unit to another. Incompatible dimensions are rejected i","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":897,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"expression":"5 km / 2 h to m/s"},"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":{"expression":{"description":"e.g. \"5 km / 2 h to m/s\" or \"3 ft + 20 cm to cm\"","maxLength":500,"minLength":1,"type":"string"},"from":{"maxLength":60,"type":"string"},"precision":{"default":10,"maximum":15,"minimum":1,"type":"integer"},"to":{"maxLength":60,"type":"string"},"value":{"type":"number"}},"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":904,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":903,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":897,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":880,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":899,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":876,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":890,"error":null}],"description_full":"Evaluate unit-aware arithmetic and conversions such as \"5 km / 2 h to m/s\" with strict dimension checking. Uses the mathjs unit system (SI and common imperial units, prefixes, derived units) to evaluate an expression or convert a value from one unit to another. Incompatible dimensions are rejected instead of silently converted. Expression functions that could alter the evaluator (import, createUnit, evaluate, parse, simplify, derivative) are disabled.","last_updated":"2026-11-20T13:57:27.072Z","schemes":["exact"]}