The syntax of the toRadians() method is:
Math.toRadians(double angle)
Here, toRadians() is a static method. Hence, we are accessing the method using the class name, Math.
toRadians() Parameters
The toRadians() method takes a single parameter.
- angle - angle in degree which is to be converted to radians
toRadians() Return Value
- returns the angle measured in radians
Note: The conversion from degrees to radians is approximate. However, it is generally inexact.