fmodnew#
- zeroheliumkit.src.utils.fmodnew(angle: float | int) float[source]#
Modified modulo calculations for angles in degrees. The lower branch always has a negative sign.
- Parameters:
angle (float | int) – The angle in degrees.
- Returns:
The angle in degrees, normalized to the range [-180, 180).
- Return type:
float
Example
>>> result = fmodnew(370) >>> print(result) -350.0