Skip to content

IsZero

Check whether value is zero.

Declaration

Source position: math.pp line 311

function IsZero(const A: Single; Epsilon: Single) : Boolean;  overload; overload;
function IsZero(const A: Single) : Boolean;  overload; overload;
function IsZero(const A: Double; Epsilon: Double) : Boolean;  overload; overload;
function IsZero(const A: Double) : Boolean;  overload; overload;
function IsZero(const A: Extended; Epsilon: Extended) : Boolean
               ;  overload; overload;
function IsZero(const A: Extended) : Boolean;  overload; overload;

Description

IsZero checks whether the float value A is zero, up to a precision of Epsilon. It returns True if Abs(A) is less than Epsilon.

The default value for Epsilon depends on the type of the argument: it is 1E-4 for Single, 1E-12 for Double and 1E-16 for extended.

See also

Name Description
IsNan Check whether value is Not a Number.
IsInfinite Check whether value is infinite.
SameValue Check whether 2 float values are the same.