toRadians

.toRadians

Converts this value to radians, and returns the result. As a lot of the trigonometry methods in the Number class take an angle, this is often very useful to use.

angle  = 180.toRadians()

angle2 = 90.toRadians()

See also

toDegrees