Skip to content

Stats: Make suffixes use the US/Canada/Modern British version#10737

Merged
shiki merged 2 commits intowordpress-mobile:developfrom
hafizrahman:issue/10709-more-understandable-number-symbols-in-stats
Nov 6, 2019
Merged

Stats: Make suffixes use the US/Canada/Modern British version#10737
shiki merged 2 commits intowordpress-mobile:developfrom
hafizrahman:issue/10709-more-understandable-number-symbols-in-stats

Conversation

@hafizrahman
Copy link
Copy Markdown
Contributor

@hafizrahman hafizrahman commented Nov 5, 2019

Fixes #10709

Now for a bit of word nerdery.

"k", "M", "B", and "T" are relatively well-known as suffixes for those numbers, but while working on this I found the last two numbers, quadrillion and quintillion, to be quite tricky.

As far as I can research, there are no standardized suffixes for these two numbers yet. Some examples from gaming websites and Stack Overflow use either the pair of "q" and "Q", or "Qa" and "Qi". I adopted the latter here since they feel more obvious and easily understandable.

This is also likely not something most users will encounter anyway, since these numbers are quite high, so we probably don't need to worry too much about it now. Once the majority of WordPress sites are successful enough to pull these sort of numbers, it will then be a good problem to have and revisit :)

Lastly, it pains me a bit that the suffixes is now made to be based on the US/Canada/Modern British version, but at least it feels more natural now. I hope that in the future we can refactor this into translatable strings instead.

PR submission checklist:

  • I have considered adding unit tests where possible.

  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@shiki shiki self-requested a review November 5, 2019 13:48
@shiki shiki added this to the 13.7 milestone Nov 6, 2019
@shiki shiki self-assigned this Nov 6, 2019
Copy link
Copy Markdown
Contributor

@shiki shiki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @hafizrahman! LGTM! 🎉

@shiki shiki merged commit b52b813 into wordpress-mobile:develop Nov 6, 2019
@archon810
Copy link
Copy Markdown

😆 @ Qa/Qi. That'll be something if I ever see those numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect notation for billion views

4 participants