I want to generate a number(z) from a given number(x)
I want z to be higher the closer x is to any 90 degree angle(90, 180,270, 360)
example; If x is 90 then z should be 1. If x is 45 then z should be 0(because 45 is the furtherst you can be from a 90degree angle)
Any ideas?