sin: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (template:command argument fix)
(15 intermediate revisions by 8 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|S]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.97|S]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|S]]
[[Category:Scripting Commands ArmA|S]]


back to [[Scripting_Reference#S|COMREF]]
| ofp |= Game name


<h2 style="color:#000066">'''sin ''x'''''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| Sine of x, argument in [[Number#Degrees|Degrees]]. |DESCRIPTION=
____________________________________________________________________________________________


'''Operand types:'''
| [[Number]] <nowiki>=</nowiki> '''sin''' x |SYNTAX=


'''x:''' [[Number]]
|p1= x: [[Number]] |PARAMETER1=


'''Type of returned value:'''
| [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>_sine = [[sin]] 30;//result is 0.5</code> |EXAMPLE1=
____________________________________________________________________________________________


[[Number]]
[[Math Commands]] |SEEALSO=


'''Description:'''
}}


Sine of '''x''', argument 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>
 
[[Category:Scripting Commands|SIN]]
_sine = '''sin''' 30 ...... Result is 0.5
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SIN]]
[[Category:Scripting Commands OFP 1.46|SIN]]
[[Category:Scripting Commands ArmA|SIN]]
[[Category:Command_Group:_Math|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 15:49, 7 April 2019

Hover & click on the images for description

Description

Description:
Sine of x, argument in Degrees.
Groups:
Uncategorised

Syntax

Syntax:
Number = sin x
Parameters:
x: Number
Return Value:
Number

Examples

Example 1:
_sine = sin 30;//result is 0.5

Additional Information

See also:
Math Commands

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