Math.deg

Math.deg

Math.deg

Function

Rotation angle in radians. Returns the corresponding angle value.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
radianNumberYesNoneThe radian value.

Return value

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

Example

Notes

  • Equivalent to radian * 180 / PI.