MQL4 Reference
Math & Trig
MathAbs
| double MathAbs( |
double value) |
Returns the absolute value (modulus) of the specified numeric value.
Parameters:
Sample:
double dx=-3.141593, dy;
// calc MathAbs
dy=MathAbs(dx);
Print("The absolute value of ",dx," is ",dy);
// Output: The absolute value of -3.141593 is 3.141593
|
|
|