RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.Power Function

Raises Base to any power.

Pascal
function Power(const Base: Extended; const Exponent: Extended): Extended; overload;
function Power(const Base: Double; const Exponent: Double): Double; overload;
function Power(const Base: Single; const Exponent: Single): Single; overload;
C++
Extended Power(const Extended Base, const Extended Exponent);
Double Power(const Double Base, const Double Exponent);
Single Power(const Single Base, const Single Exponent);

Power raises Base to any power. For fractional exponents or exponents greater than MaxInt, Base must be greater than 0. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!