That sounds pretty tough to nail down; I've never attempted to discern between flooring and rounding before / don't really know where to start except with the actual formula then disproving the wrong cases.