Math.rad

Math.rad

Math.rad

Function

Angle to radians. Returns the corresponding radian value.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
degreeNumberYesNoneAngle value.

Return value

TypeDescription
Int/FloatReturns the corresponding radian value. An Int is returned for integer results, and a Float for non-integer or non-finite results.

Example

Notes

  • Equivalent to degree * PI / 180.