Go back to math.floor

This reverts commit 5900c222dab367910a925ba0bc182ca3724a23cd.