BIS fnc pow: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "\{\{ *cc*\| *([^}]+) *\}\}" to "// $1")
Line 18: Line 18:
|r1= [[Number]] - ''value1'' raised to the power of ''value2''
|r1= [[Number]] - ''value1'' raised to the power of ''value2''


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


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

Revision as of 11:02, 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, 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 Template:= 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