MQL4 Reference
Math & Trig
MathPow
| double MathPow( |
double base, double exponent) |
Returns the value of the base expression raised to the specified power (exponent value).
Parameters:
| base |
- |
Base value. |
| exponent |
- |
Exponent value. |
Sample:
double x=2.0,y=3.0,z;
z=MathPow(x,y);
Printf(x," to the power of ",y," is ", z);
//Output: 2 to the power of 3 is 8
|
|
|