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

60 lines
1.2 KiB
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.
# MathReverse
Generates an array of values with reverse order of elements.
Version for working with real values and with output of the results to a new array:
```
bool  MathReverse(
   const double&  array[],      // array of values
   double&        result[]      // array of results
   )
```
# Version for working with integer values and with output of the results to a new array:
```
bool  MathReverse(
   const int&     array[],      // array of values
   int&           result[]      // array of results
   )
```
# Version for working with real values and with output of the results to the original array.
```
bool  MathReverse(
   double&        array[]       // array of values
   )
```
# Version for working with integer values and with output of the results to the original array:
```
bool  MathReverse(
   int&           array[]       // array of values
   )
```
Parameters
array[]
[in] Array of values.
array[]
[out] Output array with the reverse order of values.
result[]
[out] Output array with the reverse order of values.
Return Value
Returns true if successful, otherwise false.