Fix floating point numbers.

This commit is contained in:
Sergey Vartanov 2021-11-11 23:52:46 +03:00
parent 6e20668e24
commit ed0e0384b7
23 changed files with 358 additions and 332 deletions

View file

@ -26,7 +26,7 @@ class MinMax:
def center(self) -> Any:
"""Get middle point between minimum and maximum."""
return (self.min_ + self.max_) / 2
return (self.min_ + self.max_) / 2.0
def is_empty(self) -> bool:
"""Check if interval is empty."""