toDegrees (JavaScript)
Converts radians to degrees.
Defined in
Math (JavaScript)Syntax
toDegrees(value:double)
: double
Parameter | Description |
---|---|
value |
A number of radians. |
Return value | Description |
---|---|
double |
The value of the parameter in degrees. |
Usage
One radian equals 180 divided by pi, or approximately 57.29577 degrees.Examples
This edit box is for the input of a number of radians. Itsonchange
event changes the
data value of another edit box to be the equivalent value in degrees.sessionScope.degrees = Math.toDegrees(sessionScope.radians)