Fix floor and ceil to support negatives