JCL Help:PowerInt@Float@Integer
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: PowerInt Function
[+] JclMath.pas Functions
Search in JCL Help
Search in all projects
Summary
Returns X to the power N.
Pascal
function PowerInt(const X: Float; N: Integer): Float; overload;
function PowerInt(const Z: TPolarComplex; const Exponent: Integer): TPolarComplex; overload;
Parameters
Parameters | Description |
const X: Float | Base value. |
N: Integer | Exponent. |
Return Value
X to the power N.
Description
PowerInt calculates X to the power N where N is an integer. This function uses multiplication to raise X to the power N which is faster than using the formal formula for Power (which uses Exp and Ln) and therefore you should favor this function over Power when the exponent is an integer.
See Also
About
Unit
Donator
J. Debord
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page