Use round instead of floor

Using floor breaks when D = 29, 57 or 58. See #41894