Martin wrote:
Sure it can.
Your answer is in radians. There are 2 * pi radians in a circle. There are also 360 degrees in a circle.
This gives us that there are 360 degrees / 2 * pi radians
Now, we have how many radians there are, and we want to convert to degrees. Let the number of radians we have be x. We want to solve for how many degrees x is, which we'll denote by y.
y degrees / x radians = 360 degrees / 2 * pi radians.
Multiplying both sides by x we get:
y = (360 * x) / (2 * pi)
so if you had to put that in a code for me to copy and paste, which way would I put it in?
var y, x : real
const pi : 3.14 (forget if you have to have var name or not as in real)
get x
y = (360 * x) / (2 * pi)
put y