Implement min/floor and max/ceiling.