math: minor cleanups in ceil and floor