Java Math toRadians() Method

The toRadians() method of Java Math class converts an angle measured in degrees to an approximately equivalent angle measured in radian.

Syntax:

public static double toRadians (double angdeg)

Parameters

The parameter ‘angdeg’ represents an angle measured in degrees.

Return Value:

The toRadians() method returns the an inexact angdeg measurement in radians.

Example 1:

Output:

Example 2:

Output:

Example 3:

Output:

Example 4:

Output:

Example 5:

Output: