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