MathCeil - Math Functions - MQL4 Reference

MQL4 Reference Math Functions MathCeil

MathCeil

The function returns integer numeric value closest from above.

double  MathCeil(
   double  val      // number
   );

Parameters

val

[in]  Numeric value.

Return Value

Numeric value representing the smallest integer that exceeds or equals to val.

Note

Instead of the MathCeil() function you can use ceil().