Download MetaTrader 5

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().


Updated: 2015.12.03