IsZero function
Check whether value is zero.
Declaration
function IsZero(const A: Single; Epsilon: Single): Boolean; overloadDescription
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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
