float to int

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-12 09:07:44 +02:00
parent 749e3a9d40
commit f45ad8f79c
1 changed files with 1 additions and 1 deletions

View File

@ -26,6 +26,6 @@ def get_water_level():
TimeElapsed = StopTime - startTime TimeElapsed = StopTime - startTime
distance = (TimeElapsed * 34300) / 2 distance = (TimeElapsed * 34300) / 2
return distance return int(distance)
print(get_water_level()) print(get_water_level())