The java.lang.Math.toRadians() is used to convert an angle measured in degrees to an approximately equivalent angle measured in radians.
Note: The conversion from degrees to radian is generally inexact.
public static double toRadians(double deg) Parameter: deg : This parameter is an angle in degrees which we want to convert in radians. Return : This method returns the measurement of the angle deg in radians.
Example: To show working of java.lang.Math.toRadians() method.
3.141592653589793 1.5707963267948966 0.7853981633974483
- StrictMath toRadians() Method in Java
- toDegrees() and toRadians() in Java
- Java lang.Long.byteValue() method in Java with Examples
- Java lang.Long.reverse() method in Java with Examples
- Java lang.Long.builtcount() method in Java with Examples
- Java lang.Long.highestOneBit() method in Java with Examples
- Java lang.Long.lowestOneBit() method in Java with Examples
- Java lang.Long.numberOfTrailingZeros() method in Java with Examples
- Java lang.Long.numberOfLeadingZeros() method in Java with Examples
- Java.util.Collections.rotate() Method in Java with Examples
- Java.lang.Short toString() method in Java with Examples
- Java.util.Collections.disjoint() Method in java with Examples
- Java.lang.string.replace() method in Java
- Java.math.BigInteger.modInverse() method in Java
- Java 8 | ArrayDeque removeIf() method in Java with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. 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.