I'm using the following equation that I found on Stack Overflow. It's supposed to convert any angle (0-360˚) into a range of -90˚ to 90˚:
Code:asin(sin(angle * PI/180.0)) * 180.0/PI
When I plug it into Excel, it works as expected. For example, you can see it converts 240 into -60:
But when I try and use it in Fusion, it no longer constrains the answer to between -90˚ and 90˚. In fact, it just outputs the input back at me (so 240 becomes 240):
What am I doing wrong?