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

50 lines
1.1 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.
# MathSequenceByCount
Generates a sequence of values based on the following values: the first element, the last element, the number of elements in the sequence.
Version for working with real values:
```
bool  MathSequenceByCount(
   const double  from,       // initial value
   const double  to,         // final value
   const int     count,      // count
   double&       result[]    // array of results
   )
```
Version for working with integer values:
```
bool  MathSequenceByCount(
   const int     from,       // initial value
   const int     to,         // final value
   const int     count,      // count
   int&          result[]    // array of results
   )
```
Parameters
from
[in] The first value of the sequence.
to
[in] The last value of the sequence.
count
[in] The number of elements in the sequence.
result[]
[out] Array to output the sequence.
Return Value
Returns true if successful, otherwise false.