MQL4 Reference
Math & Trig
MathFloor
| double MathFloor( |
double x) |
The MathFloor function returns a numeric value representing the largest integer that is less than or equal to x.
Parameters:
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*/
|
|
|