System.Math.IsZero
Delphi
function IsZero(const A: Extended; Epsilon: Extended): Boolean;
function IsZero(const A: Double; Epsilon: Double): Boolean;
function IsZero(const A: Single; Epsilon: Single): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall IsZero(const System::Extended A, System::Extended Epsilon = 0.000000E+00)/* overload */;
Eigenschaften
| Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
|---|---|---|---|---|
| function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
Beschreibung
Gibt an, ob eine Gleitkommavariable oder ein Gleitkommaausdruck den Wert null oder beinahe null hat.
Mit IsZero können Sie prüfen, ob der in A angegebene Wert null ist oder von null um nicht mehr als Epsilon abweicht.
Wenn ist, dann wird implizit ein angemessener Standardwert verwendet. Beispielweise verwendet die Double-Version von IsZero den Standardwert:
Epsilon = 0
Epsilon = 1E-12.