Call CompareValue to determine the relationship between two numeric values. When comparing floating-point values, CompareValue lets you specify a maximum difference to use when comparing values, so that they are considered the same if they are within that amount.
A and B are the values to compare.
Epsilon is the maximum amount by which A and B can differ and still be considered the same value.
CompareValue returns
LessThanValue if A is less than B (by more than Epsilon if A and B are floating-point numbers).
EqualsValue if A is equivalent to B (the same, or within Epsilon if A and B are floating-point numbers).
GreaterThanValue if A is larger than B (by more than Epsilon if A and B are floating-point numbers).