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

Number format utilities #3450

Closed
2 tasks
YohannParis opened this issue Apr 26, 2024 · 0 comments · Fixed by #3467
Closed
2 tasks

Number format utilities #3450

YohannParis opened this issue Apr 26, 2024 · 0 comments · Fixed by #3467
Assignees

Comments

@YohannParis
Copy link
Member

Describe

We need to create several number formater utilities to display large numbers either in text or input fields.

Conditions

  • if number is 6 digits or less, do nothing
  • If number contains more than 7 digit it should use the scientific notation with 4 significant digits
  • All numbers should follow the NIST rules

Task

  • Create utility to fulfill those conditions. Smaller functions are best.
  • Create unit test with multiple edge cases

Extra information

Image

Image

@blanchco blanchco linked a pull request Apr 30, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants