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

41 lines
635 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.
# MathLog2
Calculates the logarithm to the base 2 for the array elements.
Version with output of the results to a new array:
```
bool  MathLog2(
   const double&  array[],   // array of values
   double&        result[]   // array of results
   )
```
Version with output of the results to the original array:
```
bool  MathLog2(
   double&        array[]    // array of values
   )
```
Parameters
array[]
[in] Array of values.
result[]
[out] Array of output values.
array[]
[out] Array of output values.
Return Value
Returns true if successful, otherwise false.