[Overview][Constants][Types][Classes][Procedures and functions] Reference for unit 'math' (#rtl)

IsZero

Check whether value is zero

Declaration

Source position: line 0

function IsZero(

  const A: Single;

  Epsilon: Single

):Boolean;

function IsZero(

  const A: Single

):Boolean;

function IsZero(

  const A: Extended;

  Epsilon: Extended

):Boolean;

function IsZero(

  const A: Extended

):Boolean;

Description

IsZerochecks whether the float value Ais zero, up to a precision of Epsilon. It returns Trueif Abs(A) is less than Epsilon.

The default value for Epsilonis dependent on the type of the arguments, but is MinFloatfor the float type.

See also

IsNan

  

Check whether value is Not a Number

IsInfinite

  

Check whether value is infinite

SameValue

  

Check whether 2 float values are the same