{"id":"angle-unit-convert","version":"1.0.0","description":"Converts an angle between six units and returns a decimal value plus exact-or-rounded status.","supported_operations":["convert degrees to radians","degrees to radians","radians to degrees","convert gradians to degrees","turns to arcminutes","arcseconds into radians","change gon to turns"],"unsupported_operations":["calculate sine or cosine","parse degree-minute-second notation"],"semantics":["Decimal strings use plain base-10 notation; finite JSON numbers use their canonical decimal coefficient and exponent. Values have at most 100 coefficient digits and at most 60 fractional coefficient digits; longer fractions are rejected as invalid_input.","Conversions not involving radians use reduced exact rational arithmetic; radians use pi = 3.141592653589793238462643383279502884197169399375105820974944592307816406286 (BIPM reference digits), then exactly one requested rounding operation.","Rounding modes are half_even, half_up, toward_zero, floor, and ceiling; trailing fractional zeroes are removed.","The exact field reports whether the unrounded rational equals the returned decimal; rounded is its inverse.","Returns standard_version on every success.","The decimal_places request consumes one bounded output-grid iteration per place (maximum 60); the input has exactly five logical items, and the serialized result is checked against the 306-byte output cap."],"limits":{"max_input_bytes":203,"max_value_bytes":128,"max_digits":100,"max_decimal_places":60,"max_items":5,"max_iterations":60,"max_output_bytes":306},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"number"}]},"from_unit":{"type":"string","enum":["degrees","radians","gradians","turns","arcminutes","arcseconds"]},"to_unit":{"type":"string","enum":["degrees","radians","gradians","turns","arcminutes","arcseconds"]},"decimal_places":{"type":"number","minimum":0,"maximum":60},"rounding_mode":{"type":"string","enum":["half_even","half_up","toward_zero","floor","ceiling"]}},"required":["value","from_unit","to_unit","decimal_places","rounding_mode"]},"output_schema":{"type":"object","additionalProperties":false,"properties":{"standard_version":{"type":"string"},"value":{"type":"string"},"exact":{"type":"boolean"},"rounded":{"type":"boolean"},"decimal_places":{"type":"number","minimum":0,"maximum":60},"rounding_mode":{"type":"string","enum":["half_even","half_up","toward_zero","floor","ceiling"]},"from_unit":{"type":"string","enum":["degrees","radians","gradians","turns","arcminutes","arcseconds"]},"to_unit":{"type":"string","enum":["degrees","radians","gradians","turns","arcminutes","arcseconds"]}},"required":["standard_version","value","exact","rounded","decimal_places","rounding_mode","from_unit","to_unit"]},"examples":[{"input":{"value":"180","from_unit":"degrees","to_unit":"radians","decimal_places":12,"rounding_mode":"half_even"},"output":{"value":"3.14159265359","exact":false,"rounded":true,"from_unit":"degrees","to_unit":"radians","decimal_places":12,"rounding_mode":"half_even","standard_version":"SI Brochure 9th ed. (2019), Table 4; ISO 80000-3:2019"}},{"input":{"value":"1.5","from_unit":"turns","to_unit":"degrees","decimal_places":3,"rounding_mode":"half_even"},"output":{"value":"540","exact":true,"rounded":false,"from_unit":"turns","to_unit":"degrees","decimal_places":3,"rounding_mode":"half_even","standard_version":"SI Brochure 9th ed. (2019), Table 4; ISO 80000-3:2019"}}],"execute_url":"/v1/tools/angle-unit-convert/versions/1.0.0/execute"}