MQL4 Reference
Math & Trig
MathCeil
| double MathCeil( |
double x) |
The MathCeil function returns a numeric value representing the smallest integer
that exceeds or equals to x.
Parameters:
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*/
|
|
|