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

Improvements to civicFormat #1221

Open
jaronheard opened this issue Sep 8, 2020 · 0 comments
Open

Improvements to civicFormat #1221

jaronheard opened this issue Sep 8, 2020 · 0 comments

Comments

@jaronheard
Copy link
Contributor

jaronheard commented Sep 8, 2020

Is your feature request related to a problem? Please describe.
As a user of the civicFormat utility, there are a couple of pain points that I'd like address

  1. It's hard to remember what each formatting utility does
  2. The numeric and dollars utilities do a lot of rounding (1,342,043 displays as 1.3 million), and it would be nice to have those same utilities but without the rounding as an option

Describe the solution you'd like

  1. exactDollars & exactNumeric utilities that display the whole numbers.
  2. A story that shows the use of each civicFormat utility applied to a range of different values

Describe alternatives you've considered
You could add a custom precision, or solve for the common use cases.

Additional context
Was working on openelectionsportland.org

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

No branches or pull requests

1 participant