Values exactly on border of tolerance/action are shown as failing

Issue #207 resolved
Randle Taylor repo owner created an issue

e.g. for a reference of 5 and a tolerance/action of +/- 0.1/0.2 entering 5.2 is shown as a failure when it should be shown as tolerance.

The problem is due to the fact that with floating point numbers:

5.2 - 5 = 0.20000000000000018

so we need to account for this slight difference.

Need to check both js and python implementations.

Comments (1)

  1. Randle Taylor reporter

    Added fuzzy comparison for checking tolerance/action levels in both Python and javascript implementations.

  2. Log in to comment