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

feature req: fmt_pct_special should accept a precision arg to round all the way to 0/100 #42

Open
tanho63 opened this issue May 17, 2023 · 0 comments

Comments

@tanho63
Copy link
Member

tanho63 commented May 17, 2023

Given:

x <- c(0, 0.00000001, 0.00001, 0.004, 0.009, 0.011, 0.9, 0.98, 0.994, .995, .9989, .999, .9991, .99999999)
nflseedR::fmt_pct_special(x)

I think it would be useful to be able to specify whether the second and third cases are rounded all the way to 0 or to <1%

e.g. nflseedR::fmt_pct_special(x, precision = 3) might return 0%, 0%, <1%

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