{"id":"angle-normalize","version":"1.0.0","description":"Wraps an angle into an unsigned or signed one-turn range and returns the whole turns removed.","supported_operations":["normalize angle to 0 360","wrap degrees between 0 and 360","normalize radians to minus pi plus pi","remove full turns from angle","canonicalize a compass heading","wrap gon into one turn","normalize negative angle"],"unsupported_operations":["calculate trigonometric functions","unwrap a time series of angles"],"semantics":["zero_to_full returns [0, one turn); negative_half_to_positive_half returns (-half turn, positive half turn], in the selected unit.","turns_removed is the signed integer k used before rounding, adjusted after rounding: subtract one full turn and increment k above the signed upper boundary or at/above the unsigned upper boundary; add one full turn and decrement k at/below the signed lower boundary or below zero in the unsigned range.","Radian boundaries use the same fixed pi digits as angle-unit-convert. Apply the requested rounding mode once; after any full-turn range correction, truncate an off-grid radian value toward zero onto the requested decimal grid, preserving the interval.","Rounding modes are half_even, half_up, toward_zero, floor, and ceiling; trailing fractional zeroes are removed.","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 325-byte output cap.","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."],"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":325},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"properties":{"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"number"}]},"unit":{"type":"string","enum":["degrees","radians","gradians","turns","arcminutes","arcseconds"]},"range":{"type":"string","enum":["zero_to_full","negative_half_to_positive_half"]},"decimal_places":{"type":"number","minimum":0,"maximum":60},"rounding_mode":{"type":"string","enum":["half_even","half_up","toward_zero","floor","ceiling"]}},"required":["value","unit","range","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"]},"unit":{"type":"string","enum":["degrees","radians","gradians","turns","arcminutes","arcseconds"]},"range":{"type":"string","enum":["zero_to_full","negative_half_to_positive_half"]},"turns_removed":{"type":"string"}},"required":["standard_version","value","exact","rounded","decimal_places","rounding_mode","unit","range","turns_removed"]},"examples":[{"input":{"value":"-30","unit":"degrees","range":"zero_to_full","decimal_places":2,"rounding_mode":"half_even"},"output":{"value":"330","exact":true,"rounded":false,"unit":"degrees","range":"zero_to_full","turns_removed":"-1","decimal_places":2,"rounding_mode":"half_even","standard_version":"SI Brochure 9th ed. (2019), Table 4; ISO 80000-3:2019"}},{"input":{"value":"540","unit":"degrees","range":"negative_half_to_positive_half","decimal_places":0,"rounding_mode":"half_even"},"output":{"value":"180","exact":true,"rounded":false,"unit":"degrees","range":"negative_half_to_positive_half","turns_removed":"1","decimal_places":0,"rounding_mode":"half_even","standard_version":"SI Brochure 9th ed. (2019), Table 4; ISO 80000-3:2019"}}],"execute_url":"/v1/tools/angle-normalize/versions/1.0.0/execute"}