use floor since round is missing on windows