# 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(). Example: ``` #define VALUES_TOTAL 31   //+------------------------------------------------------------------+ //| Script program start function                                    | //+------------------------------------------------------------------+ void OnStart()   { //--- declare variables for conversion    double value=0;                     // real number for MathFloor conversion    int    floor_value=0;               // get the result here //--- in a loop by the number of decimal increments of a real number    for(int i=0; i