implement CEILING and FLOOR in terms of %CEILING and %FLOOR