MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Math & Trig  MathFloor

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