diff --git a/include/pops/host_pool.hpp b/include/pops/host_pool.hpp index efedc488..ec7221d5 100644 --- a/include/pops/host_pool.hpp +++ b/include/pops/host_pool.hpp @@ -307,8 +307,7 @@ class HostPool : public HostPoolInterface } } else { - dispersers_from_cell = - static_cast(std::floor(lambda * infected_at(row, col))); + dispersers_from_cell = std::lround(lambda * infected_at(row, col)); } return dispersers_from_cell; }