# MathRound The function returns a value rounded off to the nearest integer of the specified numeric value. ``` double  MathRound(    double  value      // value to be rounded    ); ``` Parameters value [in]  Numeric value before rounding. Return Value Value rounded till to the nearest integer. Note Instead of MathRound() you can use round(). Example: ``` #define VALUES_TOTAL 31   //+------------------------------------------------------------------+ //| Script program start function                                    | //+------------------------------------------------------------------+ void OnStart()   { //--- declare variables for conversion    double value=0;                     // real number for MathRound conversion    int    round_value=0;               // get the result here //--- in a loop by the number of decimal increments of a real number    for(int i=0; i