Use % in any code.
`Test code:`
```
Object playerObject;
PlayerBase player;
vector direction;
float angle;
float degrees;
float rotation;
player = PlayerBase.Cast( GetGame().GetPlayer() );
direction = player.GetDirection();
angle = Math.Atan2(direction[1], direction[0]); // Radians
degrees = angle / (180 * Math.PI); // Degrees
rotation = ( 360 + Math.Round(degrees) ) % 360; // Rotation
GetGame().CopyToClipboard( "Player Rotation is: " + rotation );
Print( String( "Player Rotation is: " + rotation ) );
```