Skip to content
Snippets Groups Projects
Commit 56a3b671 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Use <= instead of < in almost_equal(), so that delta can be 1 in case of integer.

parent 85ea5acc
No related branches found
No related tags found
1 merge request!288Resolve L2SDP-836
Pipeline #38522 passed
......@@ -674,7 +674,7 @@ PACKAGE BODY common_pkg IS
FUNCTION almost_equal(a, b, delta : REAL) RETURN BOOLEAN IS
BEGIN
IF ABS(a - b) < ABS(delta) THEN
IF ABS(a - b) <= ABS(delta) THEN
RETURN TRUE;
ELSE
RETURN FALSE;
......@@ -683,7 +683,7 @@ PACKAGE BODY common_pkg IS
FUNCTION almost_equal(a, b, delta : INTEGER) RETURN BOOLEAN IS
BEGIN
IF ABS(a - b) < ABS(delta) THEN
IF ABS(a - b) <= ABS(delta) THEN
RETURN TRUE;
ELSE
RETURN FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment