Equinox Online Help - Language Reference - A to Z

Home

Rad

Applies to
SyntaxRad(NumberExpression)
Action[Function] Converts an angle from degrees to radians.
ScopeUsable anywhere.
Notes

This function converts NumberExpression from degrees to radians using the formula NumberExpression * p / 180. You may use the Deg function to convert radians to degrees.

CategoryMaths
See Also Abs, Acos, Asin, Atan, Cos, Deg, Int, Log, Max, Min, MinMax, Rnd, RndStart, Round, Sign, Sin, Sqrt, Tan
Example

This example calculates the length of the side adjacent to the angle A in a right-angled triangle.

number A, adjacent, hypotenuse

|...
adjacent = hypotenuse * Cos(Rad(A))