Sign in Join
FPDoc Onlineexperiment

TJSONComparer.Epsilon property

Member of TJSONComparerpublicIn unit JsonComparer

Floating-point comparison tolerance

Declaration

pascal
property Epsilon: Double read FEpsilon write FEpsilon;

Description

Epsilon specifies the tolerance used when comparing floating-point JSON numbers. Two floating-point values are considered equal if their absolute difference is less than or equal to Epsilon. The default value is 1E-8, providing reasonable precision for most JSON numeric comparisons. This property can be adjusted to accommodate different precision requirements.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.