cos: Difference between revisions
| Lou Montana (talk | contribs) m (Text replacement - "]]<dd class="note">" to "]]</dt> <dd class="note">") | Lou Montana (talk | contribs)  m (Text replacement - " \| *ofp * *\| *1.([0-9]{2}) * +\|([^g]|g[^a])" to " | ofp |1.$1  |game2= ofpe |version2= 1.00  |game3= arma1 |version3= 1.00  |game4= arma2 |version4= 1.00  |game5= arma2oa |version5= 1.50  |game6= tkoh |version6= 1.00  |game7= arm...) | ||
| Line 2: | Line 2: | ||
| | ofp | | ofp | ||
| |1.00 | |||
| |game2= ofpe | |||
| |version2= 1.00 | |||
| |game3= arma1 | |||
| |version3= 1.00 | |||
| |1.00 | |game4= arma2 | ||
| |version4= 1.00 | |||
| |game5= arma2oa | |||
| |version5= 1.50 | |||
| |game6= tkoh | |||
| |version6= 1.00 | |||
| |game7= arma3 | |||
| |version7= 0.50 | |||
| |gr1= Math - Geometry | |gr1= Math - Geometry | ||
Revision as of 21:34, 12 June 2021
Description
- Description:
- Description needed
- Groups:
- Math - Geometry
Syntax
- Syntax:
- Syntax needed
- Parameters:
- x: Number
- Return Value:
- Number
Examples
- Example 1:
- cos 60;//returns 0.5
Additional Information
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
- Posted on August 8, 2006 - 23:54
- hardrock
- Be aware that there might be rounding errors in the results of this command. cos 90 for example doesn't return the expected '0', but '-4.37114e-008'. So, if you want to compare results of Cosinus, don't use the compare operator (cos 90)==0 but rather use less than. (cos 90) < 0.00001
 
	




