We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following is incorrect, if I am not mistaken (but I am not a native speaker):
sage: n = 113 sage: n.ordinal_str() '113rd' sage: n = 112 sage: n.ordinal_str() '112nd' sage: n = 111 sage: n.ordinal_str() '111st'
With my patch, one gets
sage: n = 111 sage: n.ordinal_str() '111th' sage: n = 112 sage: n.ordinal_str() '112th' sage: n = 113 sage: n.ordinal_str() '113th'
while one still has
sage: n = 121 sage: n.ordinal_str() '121st' sage: n = 122 sage: n.ordinal_str() '122nd' sage: n = 123 sage: n.ordinal_str() '123rd'
Component: basic arithmetic
Keywords: ordinals
Author: Simon King
Reviewer: Adam Webb
Merged: Sage 4.1.2.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/6842
The text was updated successfully, but these errors were encountered:
Fixing ordinal_str for numbers of the form n100+11, n100+12, n*100+13
Sorry, something went wrong.
Attachment: ordinal_str.patch.gz
Looks good to me. It passes unit tests and the documentation builds correctly.
Adam
I came along to review this only to find that I was too late. Thanks for fixing the bug (which was mine).
No branches or pull requests
The following is incorrect, if I am not mistaken (but I am not a native speaker):
With my patch, one gets
while one still has
Component: basic arithmetic
Keywords: ordinals
Author: Simon King
Reviewer: Adam Webb
Merged: Sage 4.1.2.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/6842
The text was updated successfully, but these errors were encountered: