Skip to content
New issue

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

Wrong endings for ordinal numbers from 11 to 13 #7

Closed
pilyugin opened this issue Feb 12, 2016 · 1 comment
Closed

Wrong endings for ordinal numbers from 11 to 13 #7

pilyugin opened this issue Feb 12, 2016 · 1 comment

Comments

@pilyugin
Copy link

Converter returns ordinal numbers with wrong endings:

converter.toOrdinal(11); // => “11st”
converter.toOrdinal(12); // => “12nd”
converter.toOrdinal(13); // => “13rd”

But should be 11th, 12th, 13th.

@pilyugin pilyugin changed the title Wrong ending for ordinal from 11 to 13 Wrong endings for ordinal numbers from 11 to 13 Feb 12, 2016
pilyugin added a commit to pilyugin/number-to-words that referenced this issue Feb 12, 2016
@pilyugin
Copy link
Author

Please see my PR #8 which fixes this bug.

marlun78 added a commit that referenced this issue Feb 12, 2016
toOrdinal: added special behavior for numbers ending with 11, 12 and 13. Fixes #7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant