Copyright © tutorialspoint.com
The method converts the argument value to degrees.
double toDegrees(double d) |
Here is the detail of parameters:
A double data type.
Return value is a double
public class Test{ public static void main(String args[]){ double x = 45.0; double y = 30.0; System.out.println( Math.toDegrees(x) ); System.out.println( Math.toDegrees(y) ); } } |
This produces following result:
2578.3100780887044 1718.8733853924698 |
Copyright © tutorialspoint.com