From f45ad8f79cbef282b8759fe4914ffefd52d57756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 12 Jul 2022 09:07:44 +0200 Subject: [PATCH] float to int MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.py b/test.py index c259d21..578e7d7 100644 --- a/test.py +++ b/test.py @@ -26,6 +26,6 @@ def get_water_level(): TimeElapsed = StopTime - startTime distance = (TimeElapsed * 34300) / 2 - return distance + return int(distance) print(get_water_level()) \ No newline at end of file