deg: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| ofp |Game name=
| ofp |Game name=
Line 7: Line 6:


|gr1= Math - Geometry |GROUP1=
|gr1= Math - Geometry |GROUP1=
____________________________________________________________________________________________


| Converts given value in radians to degrees. 1 degree equals 0.01745 radians or [[pi]] / 180.  |DESCRIPTION=
| Converts given value in radians to degrees. 1 degree equals 0.01745 radians or [[pi]] / 180.  |DESCRIPTION=
____________________________________________________________________________________________


| '''deg''' value|SYNTAX=
| '''deg''' value|SYNTAX=
Line 17: Line 14:


| [[Number]] - degrees |RETURNVALUE=
| [[Number]] - degrees |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>_degrees = [[deg]] 1; // returns 57.2958</code>|EXAMPLE1=
|x1= <code>_degrees = [[deg]] 1; // returns 57.2958</code>|EXAMPLE1=
____________________________________________________________________________________________


| [[rad]] |SEEALSO=
| [[rad]] |SEEALSO=

Revision as of 01:42, 17 January 2021

Hover & click on the images for description

Description

Description:
Converts given value in radians to degrees. 1 degree equals 0.01745 radians or pi / 180.
Groups:
Math - Geometry

Syntax

Syntax:
deg value
Parameters:
value: Number - radians
Return Value:
Number - degrees

Examples

Example 1:
_degrees = deg 1; // returns 57.2958

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