MQL4参考 数学函数 MathAbs

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