deg: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(format)
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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=


|p1= value: [[Number]] - radians|= Parameter 1
|p1= value: [[Number]] - radians|PARAMETER1=


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


| [[Math Commands]], [[rad]] |= See also
| [[Math Commands]], [[rad]] |SEEALSO=


}}
}}

Revision as of 15:37, 7 April 2019

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:
Uncategorised

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:
Math Commandsrad

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