RAD2DEG
From MCS Wiki AVR
(Difference between revisions)
(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 | + | Converts a value from radians to degrees. |
<span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </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
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 |
---|