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

an option for large numbers rounding #15

Closed
yegor256 opened this issue Mar 21, 2024 · 2 comments
Closed

an option for large numbers rounding #15

yegor256 opened this issue Mar 21, 2024 · 2 comments

Comments

@yegor256
Copy link

Would be great to have an option to round large numbers:

      - uses: MikhailEpatko/hits-of-code-badge@main
        with:
          output_dir: gh-pages
          filename: hoc-badge.svg
          smallest: K    # could be M or G, the default is "1"

If this smallest option is missing or set to "1", the value is printed as is. Otherwise, rounded to thousands, millions, or billions

@yegor256
Copy link
Author

@MikhailEpatko please, help

@MikhailEpatko
Copy link
Owner

Done. See README.md

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

2 participants