MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Math & Trig  MathPow

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
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