From c3ef8ae4ddc6b4cb1299e0e34a10c59586bd181b Mon Sep 17 00:00:00 2001 From: Trecia Agoylo Date: Fri, 18 Aug 2023 12:19:55 +0800 Subject: [PATCH] fix: random_values_in_range in test_adrv9002 Signed-off-by: Trecia Agoylo --- test/test_adrv9002_p.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_adrv9002_p.py b/test/test_adrv9002_p.py index 15f2551f2..bb94a491d 100644 --- a/test/test_adrv9002_p.py +++ b/test/test_adrv9002_p.py @@ -42,7 +42,7 @@ def random_values_in_range(start, stop, step, to_generate=1): ind = randint(0, numints) val = start + step * ind if isinstance(val, float): - val = floor(val / step) * step + val = round(floor(val / step) * step, 2) values.append(val) return values