mirror of
https://github.com/enzet/map-machine.git
synced 2025-07-27 13:29:12 +02:00
Fix floating point numbers.
This commit is contained in:
parent
6e20668e24
commit
ed0e0384b7
23 changed files with 358 additions and 332 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue