medium10 pts · first answer countsmathgame-mathtrigonometry
Shortest turn from 350° to 10°
A turret faces 350° and must turn to 10°. Which formula gives the shortest signed turn in degrees (for angles in [0, 360))?
((target - current + 540) % 360) - 180
Discussion 0
Join free to post in the discussion.
Related questions
- Remainder of a negative numberBackend Developer
- Why 0.1 + 0.2 is not 0.3Backend Developer
- Storing rupee amounts safelyBackend Developer
- GST inside an inclusive priceBackend Developer
- How many buses are neededBackend Developer
- Checking for a power of twoBackend Developer
- Which year is a leap yearBackend Developer
- Month number in new DateBackend Developer