In this Example we will convert **90 degrees to radians . **Firstly we will see angle to radians formula then use it .

**Note : 90 degrees is equal to π/2 radian .**

## How to Convert from Degrees to Radians

To convert from degrees to radians , we use given below formula .

Angle in radian = Angle in degree x (π/180)

## 90 degrees to radians

We will use above given formula to calculate **how many radians is 90 degrees** . In this example value of angle is 90 .

Now Angle in radian = Angle in degree x (π/180)

Angle in radian = 90 x (π/180)

Angle in radian = π/2

**Hence, 90 degrees is equal to π/2 in radian .**

As we now that value of π(PI) is 3.14159 then use this value

Angle in radian = 3.14159/2

Angle in radian = 1.570795

**So, 90 degrees is equal to 1.570795 radian . **

Now we will write a java program to convert 90 degrees to radian .

## Java program to Convert 90 degrees to radians

Math.toRadians() method converts the given angle from degrees to radians format.

Syntax :

`Math.toRadians(double angdeg)`

**Parameters:**

It takes angdeg an angle, in degrees

**Returns:**

It returns the measurement of the angle angdeg in radians.

Now we will use Math.toRadians() method to convert degree to radians . toRadians() is a static method .So we can call it directly with class name and it will return degree value in radians .

```
public class DegreesToRadians {
public static void main(String[] args) {
double deg = 90;
System.out.println("90 Degrees in radians: "+Math.toRadians(deg));
}
}
```

Output :

`90 Degrees in radians: 1.5707963267948966`

In this tutorial we learned how to convert 90 degrees to radians . We got answer **what is 90 degrees in radians **in this example . Learn more java program for practice .