fix_floor implementation and tests
fix_ceil implementation and tests