DEG2RAD

Aus MCS Wiki AVR
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Created page with "= <span class="f_Header">Action</span> = Converts an angle in to radians. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"> </span> =...")
 
 
Zeile 9: Zeile 9:
 
= <span class="f_Header">Syntax</span> =
 
= <span class="f_Header">Syntax</span> =
  
var =&nbsp;<span class="f_Syntax">DEG2RAD</span>( Source )
+
var =&nbsp;<span class="f_Syntax">DEG2RAD</span>( angle )
  
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
Zeile 27: Zeile 27:
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
 
| valign="top" width="13%" style="width: 66px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="13%" style="width: 66px; border: 1px solid rgb(0, 0, 0);" |  
Source
+
Angle
  
 
| valign="top" style="border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" style="border: 1px solid rgb(0, 0, 0);" |  

Aktuelle Version vom 15. Juni 2015, 20:41 Uhr

Inhaltsverzeichnis

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  
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
In anderen Sprachen
Sprache