Math.toRadians() returns the value after converting input degree number to radians.
Note that all input numbers are in degree.

Here are some examples.
	System.out.println(Math.toRadians(180)); //3.141592653589793
System.out.println(Math.toRadians(90));   //1.5707963267948966
System.out.println(Math.toRadians(0));    //0.0
System.out.println(Math.toRadians(1.22)); //0.02129301687433082
System.out.println(Math.toRadians(-1.22)); //-0.02129301687433082
System.out.println(Math.toRadians(-120)); // -2.0943951023931953

All Math functions

Post your comments , suggestion , error , requirements etc here

We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2021 All rights reserved worldwide Privacy Policy Disclaimer