MathFloor - Math Functions - MQL4 Reference

MQL4 Reference Math Functions MathFloor

MathFloor

The function returns integer numeric value closest from below.

double  MathFloor(
   double  val     // number
   );

Parameters

val

[in]  Numeric value.

Return Value

A numeric value representing the largest integer that is less than or equal to val.

Note

Instead of MathFloor() you can use floor().