Navigation:  thinBasic Modules > Math > Trigonometric function >

DegToRad

Previous pageReturn to chapter overviewNext page

 

Description

 

Returns the value of a degree measurement expressed in radians.

 

Syntax

 

n = DegToRad(nDegValue)

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

nDegValue

Number

No

Any numerical expression

 

Remarks

 

Use DegToRad to convert angles expressed in degrees to the corresponding value in radians.

DegToRad uses the formula:

 

Radians = Degrees * PI / 180

 

Restrictions

 

See also

 

Examples