System.Math.IsZero

From RAD Studio API Documentation
Jump to: navigation, search

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 */;

Properties

Type Visibility Source Unit Parent
function public
System.Math.pas
System.Math.hpp
System.Math System.Math

Description

Indicates when a floating-point variable or expression evaluates to zero, or very close to zero.

Use IsZero to test whether the value specified by A is zero, or differs from zero by at most Epsilon.

If Epsilon = 0, then some reasonable default value is used implicitly. For example, the Double version of IsZero uses the default value:

Epsilon = 1E-12.

See Also