implement floor/1 and ceiling/1 with trunc/1