RAD2DEG

From MCS Wiki AVR
(Difference between revisions)
Jump to: navigation, search
(Created page with "= <span class="f_Header">Action</span> = Converts a value in radians to degrees. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"> </s...")
 
 
Line 1: Line 1:
 
= <span class="f_Header">Action</span> =
 
= <span class="f_Header">Action</span> =
  
Converts a value in radians to degrees.
+
Converts a value from radians to degrees.
  
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>

Latest revision as of 20:46, 15 June 2015

Contents

Action

Converts a value from radians to degrees.

 

 

Syntax

var = RAD2DEG( Source )

 

 

Remarks

Var

A numeric variable that is assigned with the angle of variable source.

Source

The single or double variable to get the angle of.

 

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

 

 

See Also

DEG2RAD

 

 

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