DEG2RAD

From MCS Wiki AVR
Revision as of 19:41, 15 June 2015 by Admin (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Action

Converts an angle in to radians.

 

 

Syntax

var = DEG2RAD( angle )

 

 

Remarks

Var

A numeric variable that is assigned with the radians of variable Source.

Angle

The single or double variable to get the degrees of.

 

All trig functions work with radians. Use deg2rad and rad2deg to convert between radians and angles.

 

Radian is the ratio between the length of an arc and its radius. The radian is the standard unit of angular measure.

You can find a good explanation at wikipedia.

 

 

See Also

RAD2DEG

 

 

Example


'-------------------------------------------------------------------------------
'copyright : (c) 1995-2005, MCS Electronics
'micro : Mega48
'suited for demo : yes
'commercial addon needed : no
'purpose : demonstrates DEG2RAD function
 
'-------------------------------------------------------------------------------
Dim S As Single
S = 90
 
S = Deg2Rad(s)
Print S
S = Rad2deg(s)
Print S
End

Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language