use floor division where needed #7681
3 files changed