Skip to content

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

Description

@tanho63

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%

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions