cos: 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|COS]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|COS]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|COS]]
 
[[Category:Scripting Commands ArmA|COS]]
| ofp |= Game name


|1.00|= Game version
____________________________________________________________________________________________


<h2 style="color:#000066"> '''cos ''x'''''</h2>
| Cosine of a number, argument in degrees. |= Description
____________________________________________________________________________________________


| '''cos''' x |= Syntax


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


'''x:''' [[Number]]
| [[Number]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>cos 60</pre>


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


[[Number]]
| [[acos]], [[sin]], [[asin]] |= See also


'''Description:'''
}}


Cosine of '''x''', argument is in 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>


_cosine = '''cos''' 60 ...... Result is 0.5
[[Category:Scripting Commands|COS]]
[[Category:Scripting Commands OFP 1.96|COS]]
[[Category:Scripting Commands OFP 1.46|COS]]
[[Category:Scripting Commands ArmA|COS]]

Revision as of 23:01, 1 August 2006

Hover & click on the images for description

Description

Description:
Cosine of a number, argument in degrees.
Groups:
Uncategorised

Syntax

Syntax:
cos x
Parameters:
x: Number
Return Value:
Number

Examples

Example 1:
cos 60
returns 0.5

Additional Information

See also:
acossinasin

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