Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
std::floor
instead of casting double -> int -> double
This is the correct way to round down floating point numbers: https://en.cppreference.com/w/cpp/numeric/math/floor Closes #945.
- Loading branch information