Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/1302-standardlibrary-mathematics-stat-mathsubfunctions-statmathunique.md
T
2026-06-23 21:47:51 +08:00

647 B

MathUnique

Generates an array with unique values only.

Version for working with real values:

bool  MathUnique(
   const double&   array[],   // array of values
   double&         result[]   // array of results
   )

Version for working with integer values:

bool  MathUnique(
   const int&     array[],      // array of values
   int&           result[]      // array of results
   )

Parameters

array[]

[in] The source array.

result[]

[out] Array to output the unique values.

Return Value

Returns true if successful, otherwise false.