Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/1652-standardlibrary-datastructures-carrayfloat-carrayfloatdelta.md
T
2026-06-23 21:47:51 +08:00

50 lines
832 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.
# Delta
Sets the comparison tolerance.
```
void  Delta(
   float  delta      // tolerance
   )
```
Parameters
delta
[in]  The new value of the comparison tolerance.
Return Value
None
Note
Comparison tolerance is used in the search. Values are considered equal if their difference is less than or equal to tolerance. The default tolerance is 0.0.
Example:
```
//--- example for CArrayFloat::Delta(float)
#include <Arrays\ArrayFloat.mqh>
//---
void OnStart()
  {
   CArrayFloat *array=new CArrayFloat;
   //---
   if(array==NULL)
     {
      printf("Object create error");
      return;
     }
   //--- set compare variation
   array.Delta(0.001);
   //--- use array
   //--- . . .
   //--- delete array
   delete array;
  }
```