Download MetaTrader 5

MathAbs

The function returns the absolute value (modulus) of the specified numeric value.

double  MathAbs(
   double  value      // numeric value
   );

Parameters

value

[in]  Numeric value.

Return Value

Value of double type more than or equal to zero.

Note

Instead the MathAbs() function you can use fabs().


Updated: 2015.12.03