BIS fnc pow: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix comment)
m (Some wiki formatting)
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= Math


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


<!---|eff= local |Multiplayer Effects=--->
|p1= value1: [[Number]]


| Return value1 raised to the power of value2. Identical to [[a ^ b]]. |Description=
|p2= value2: [[Number]]


| [value1, value2] call [[BIS_fnc_pow]] |Syntax=
|r1= [[Number]] - ''value1'' raised to the power of ''value2''


|p1= value1: [[Number]] |Parameter 1=
|x1= <sqf>[2, 10] call BIS_fnc_pow; // returns 2^10 = 1024</sqf>


|p2= value2: [[Number]] |Parameter 2=
|seealso= [[Operators]] [[:Category:Command Group: Math|Math Commands group]] [[a ^ b]]
 
|[[Number]] - value1 ^ value2 |Return value=
 
|x1= <code>[2, 10] [[call]] [[BIS_fnc_pow]]; {{codecomment|// returns 2^10 {{=}} 1024}}</code> |Example 1=
 
| [[Operators]], [[:Category:Command Group: Math|Math Commands group]], [[a ^ b]] |See also=
}}
}}
[[Category:Function Group: Math|{{uc:pow}}]]
[[Category:Functions|{{uc:pow}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:pow}}]]

Latest revision as of 13: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