Java toDegrees () method
toDegrees () method is used to arguments into perspective.
grammar
double toDegrees(double d)
parameter
d - any native data types.
return value
This method returns a double value.
Examples
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) ); } }
Compile the above program, the output is:
2578.3100780887044 1718.8733853924698