The java.lang.StrictMath.toDegrees() method of StrictMath class in Java is used to accept an angle measured in radians as a parameter and returns its approximately equivalent angle measured in degrees. So basically it converts radians to degrees. This conversion is generally inexact.
public static double toDegrees(double rad)
Parameters: This function accepts a single parameter rad which refers to an angle in radians which is to be converted to its equivalent degrees.
Return Values:This method returns the measurement of the angle passed as a parameter in degrees.
Input : 2.0 Output : 114.59155902616465 Input : 0.007022 Output : 0.4023309637408641
Below programs illustrate the java.lang.StrictMath.toDegrees() method in Java :
Value in degrees of 3.0009871008 radians is 171.943895249041
Value in degrees of 1.0 radians is 57.29577951308232
- Java toDegrees() method with Example
- toDegrees() and toRadians() in Java
- StrictMath tan() Method in Java
- StrictMath sin() Method in Java
- StrictMath log() Method In Java
- StrictMath pow() Method in Java
- StrictMath exp() Method in Java
- StrictMath cosh() Method in Java
- StrictMath fma() method in Java with Examples
- StrictMath log1p() Method in Java
- StrictMath round() method in Java
- StrictMath nextDown() Method in Java
- StrictMath rint() Method in Java
- StrictMath sqrt() Method in Java
- StrictMath cbrt() Method in Java
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.