BIS fnc pow: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.00 | |||
|1.00 | |||
|gr1= Math | |gr1= Math | ||
| Return value1 raised to the power of value2. Identical to [[a ^ b]]. {{Feature|Informative|Use [[a ^ b]], it is 5 times faster.}} | |descr= Return value1 raised to the power of value2. Identical to [[a ^ b]]. {{Feature|Informative|Use [[a ^ b]], it is 5 times faster.}} | ||
<!-- | |||
| [value1, value2] call [[BIS_fnc_pow]] | |alias= [[a ^ b]] | ||
--> | |||
|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 | |r1= [[Number]] - ''value1'' raised to the power of ''value2'' | ||
|x1= <code>[2, 10] [[call]] [[BIS_fnc_pow]]; {{ | |x1= <code>[2, 10] [[call]] [[BIS_fnc_pow]]; {{cc|returns 2^10 {{=}} 1024}}</code> | ||
| [[Operators]], [[:Category:Command Group: Math|Math Commands group]], [[a ^ b]] | |seealso= [[Operators]], [[:Category:Command Group: Math|Math Commands group]], [[a ^ b]] | ||
}} | }} |
Revision as of 14:05, 9 June 2021
Description
- Description:
- Return value1 raised to the power of value2. Identical to a ^ b.
- 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:
- 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