toRadians

The Math.toRadians() method returns a number converted from degrees to radians

Syntax

toRadians(degrees)

Returns

radians

Parameters

degrees (float)
A number.