Download MetaTrader 5

MathSqrt

Returns the square root of a number.

double  MathSqrt(
   double  value      // positive number
   );

Parameters

value

[in]  Positive numeric value.

Return Value

Square root of value. If value is negative, MathSqrt returns NaN (indeterminate value).

Note

Instead of MathSqrt() you can use sqrt().

See also

Real types (double, float)


Updated: 2015.12.03