MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Math & Trig  MathCeil

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
double MathCeil( double x)
The MathCeil function returns a numeric value representing the smallest integer that exceeds or equals to x.
Parameters:
x   -   Numeric value.
Sample:
  double y;
  y=MathCeil(2.8);
  Print("The ceil of 2.8 is ",y);
  y=MathCeil(-2.8);
  Print("The ceil of -2.8 is ",y);
  /*Output:
    The ceil of 2.8 is 3
    The ceil of -2.8 is -2*/