BUG: Fix Series/DataFrame.rank(pct=True) with more than 2**24 rows
- [X] closes #18271
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
