Modulus function not displaying 180 degrees