BIS fnc pow: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
m (Some wiki formatting)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


| arma3
|game1= arma3
|version1= 1.00


|1.00
|gr1= Math


|gr1 = Math
|descr= Return value1 raised to the power of value2. Identical to [[a ^ b]]. {{Feature|important|Use [[a ^ b]] as it is 5 times faster.}}
 
<!--
| Return value1 raised to the power of value2. Identical to [[a ^ b]]. {{Informative|Use [[a ^ b]], it is 5 times faster.}}
|alias= [[a ^ b]]
 
-->
| [value1, value2] call [[BIS_fnc_pow]]
|s1= [value1, value2] call [[BIS_fnc_pow]]


|p1= value1: [[Number]]
|p1= value1: [[Number]]
Line 15: Line 16:
|p2= value2: [[Number]]
|p2= value2: [[Number]]


|[[Number]] - value1 ^ value2
|r1= [[Number]] - ''value1'' raised to the power of ''value2''


|x1= <code>[2, 10] [[call]] [[BIS_fnc_pow]]; {{codecomment|// returns 2^10 {{=}} 1024}}</code>
|x1= <sqf>[2, 10] call BIS_fnc_pow; // returns 2^10 = 1024</sqf>


| [[Operators]], [[:Category:Command Group: Math|Math Commands group]], [[a ^ b]]
|seealso= [[Operators]] [[:Category:Command Group: Math|Math Commands group]] [[a ^ b]]
}}
}}
[[Category:Functions|{{uc:pow}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:pow}}]]

Latest revision as of 12:01, 13 July 2022

Hover & click on the images for description

Description

Description:
Return value1 raised to the power of value2. Identical to a ^ b.
Use a ^ b as it is 5 times faster.
Execution:
call
Groups:
Math

Syntax

Syntax:
[value1, value2] call BIS_fnc_pow
Parameters:
value1: Number
value2: Number
Return Value:
Number - value1 raised to the power of value2

Examples

Example 1:
[2, 10] call BIS_fnc_pow; // returns 2^10 = 1024

Additional Information

See also:
Operators Math Commands group a ^ b

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