fix series expansion of floor and ceiling at arbitrary point