3

I know that I can find an equivalent angular measure to $460^\circ$ that's at least $0^\circ$ and less than $360^\circ$ by repeatedly subtracting $360^\circ$ till it's smaller than $360^\circ$, which comes out to be $100^\circ$.

But is there a general formula to do this? Or is there a formula for this "subtract till smaller than $360^\circ$" in math?

I have tried using modulo but that doesn't make sense … in fact I didn't know what I was doing at the end.

I think I used to know, but now I don't.

dfeuer
  • 9,069

2 Answers2

6

use ((n mod 360) + 360) mod 360 if n can be a negative angle.

aau
  • 61
5

$n$ mod $360$ where $n$ is your angle.

In most programming languages, mod is the % operator.

Jemmy
  • 1,411