Math.toRadians()

Signature

double toRadians (double angdeg)

Domain

action, condition

Description

Converts an angle measured in degrees to an approximately equivalent angle measured in radians. The conversion from degrees to radians is generally inexact.

Parameters

NameTypeDescription
angdegdoubleAn angle, in degrees.

Returns

TypeDescription
doubleThe measurement of the angle angdeg in radians.

Cautions

none

Example


String result = String.valueOfDouble (Math.toRadians (90.0));

Result is: result contains: "1.5707963267948966"