a ^ b: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
m (Text replacement - "|= Game version" to "|Game version=")
(29 intermediate revisions by 12 users not shown)
Line 1: Line 1:
back to [[Scripting_Reference#.23|COMREF]]
{{Command|Comments=
____________________________________________________________________________________________


<h2 style="color:#000066">''' ''a''^''b'' '''</h2>
| ofp |Game name=


'''Operand types:'''
|1.00|Game version=
____________________________________________________________________________________________


'''a:''' [[Number]]
| a '''raised to the power of''' b  |DESCRIPTION=
____________________________________________________________________________________________


'''b:''' [[Number]]
| a '''^''' b |SYNTAX=


'''Type of returned value:'''
|p1 = a: [[Number]]


[[Number]]
|p2 = b: [[Number]]


'''Description:'''


a raised to the power of b
| [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
|x1 = <code>5 '''^''' 2</code>
Result is 25
| [[Math Commands]] [[Operators]] |SEEALSO=


}}


'''Example:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


5 ^ 2 ......... Result is 25
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
 
 
[[Category:Scripting Commands|#]]
[[Category:Scripting Commands OFP 1.99|#]]
[[Category:Scripting Commands OFP 1.96|#]]
[[Category:Scripting Commands OFP 1.46|#]]
[[Category:Scripting Commands ArmA|#]]
[[Category:Scripting Commands ArmA2|#]]
[[Category:Scripting Commands Arma 3|#]]
[[Category:Command_Group:_Math|#]]
[[Category:Command_Group:_Variables|#]]

Revision as of 01:40, 31 August 2019

Hover & click on the images for description

Description

Description:
a raised to the power of b
Groups:
Uncategorised

Syntax

Syntax:
a ^ b
Parameters:
a: Number
b: Number
Return Value:
Number

Examples

Example 1:
5 ^ 2 Result is 25

Additional Information

See also:
Math Commands Operators

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