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

38 lines
647 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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.