Math.toRadians()
Signature
double toRadians (double angdeg)
Description
Converts an angle measured in degrees to an approximately
equivalent angle measured in radians. The conversion from
degrees to radians is generally inexact.
Parameters
Name | Type | Description |
angdeg | double | An angle, in degrees. |
Returns
Type | Description |
double | The measurement of the angle angdeg in radians. |
Example
String result = String.valueOfDouble (Math.toRadians (90.0));
Result is: result contains: "1.5707963267948966"