BIS fnc pow: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
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...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma3 |Game name=
| arma3


|1.00|Game version=
|1.00


|gr1 = Math |GROUP1=
|gr1 = Math


| Return value1 raised to the power of value2. Identical to [[a ^ b]]. {{Informative|Use [[a ^ b]], it is 5 times faster.}}|Description=
| Return value1 raised to the power of value2. Identical to [[a ^ b]]. {{Informative|Use [[a ^ b]], it is 5 times faster.}}


| [value1, value2] call [[BIS_fnc_pow]] |Syntax=
| [value1, value2] call [[BIS_fnc_pow]]


|p1= value1: [[Number]] |Parameter 1=
|p1= value1: [[Number]]


|p2= value2: [[Number]] |Parameter 2=
|p2= value2: [[Number]]


|[[Number]] - value1 ^ value2 |Return value=
|[[Number]] - value1 ^ value2


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


| [[Operators]], [[:Category:Command Group: Math|Math Commands group]], [[a ^ b]] |See also=
| [[Operators]], [[:Category:Command Group: Math|Math Commands group]], [[a ^ b]]
}}
}}


[[Category:Functions|{{uc:pow}}]]
[[Category:Functions|{{uc:pow}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:pow}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:pow}}]]

Revision as of 00:38, 18 January 2021

Hover & click on the images for description

Description

Description:
Return value1 raised to the power of value2. Identical to a ^ b.
Use a ^ b, 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 ^ value2

Examples

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

Additional Information

See also:
OperatorsMath Commands groupa ^ 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