deg: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|DEG]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|DEG]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|DEG]]
 
[[Category:Scripting Commands ArmA|DEG]]
| ofp |= Game name


|1.00|= Game version
____________________________________________________________________________________________


<h2 style="color:#000066">'''deg ''x'''''</h2>
| Convert a number from radians to degrees. |= Description
____________________________________________________________________________________________


| '''deg''' x |= Syntax


'''Operand types:'''
|p1= x: [[Number]] |= Parameter 1


'''x:''' [[Number]]
| [[Number]]
Result in degrees. |= Return value
____________________________________________________________________________________________
 
|x1= <pre>deg1</pre>


'''Type of returned value:'''
returns 57.295 |= Example 1
____________________________________________________________________________________________


[[Number]]
| [[rad]] |= See also


'''Description:'''
}}


Convert '''x''' from radians to degrees.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


_degrees = '''deg''' 1 ...... Result is 57.295
[[Category:Scripting Commands|DEG]]
[[Category:Scripting Commands OFP 1.96|DEG]]
[[Category:Scripting Commands OFP 1.46|DEG]]
[[Category:Scripting Commands ArmA|DEG]]

Revision as of 23:42, 1 August 2006

Hover & click on the images for description

Description

Description:
Convert a number from radians to degrees.
Groups:
Uncategorised

Syntax

Syntax:
deg x
Parameters:
x: Number
Return Value:
Number - Result in degrees.

Examples

Example 1:
deg1
returns 57.295

Additional Information

See also:
rad

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section