insightsengineering / insightsengineering/teal.slice
[Question]: Setting rules on when to use scientific notation for filter card summary display
- Dominant language
- R
- Stars
- 12
- Forks
- 7
- Avg merge
- 3d 31m
- Merged PRs (30d)
- 1
Description
Filter card summary design https://github.com/insightsengineering/teal.slice/issues/220#issuecomment-1514102912 proposes to display by scientific notation, using some rules based on significant digits.
Team need to decide on
- Align on definition of "significant digits"
- If above design make sense
- Any other caveats related to formatting the displaying digits
Quick google results in the following definition on "significant digits" ([link](https://ccnmtl.columbia.edu/projects/mmt/frontiers/web/chapter_5/6665.html))
> RULES FOR SIGNIFICANT FIGURES
> 1. All non-zero numbers ARE significant.
> 2. Zeros between two non-zero digits ARE significant.
> 3. Leading zeros are NOT significant.
> 4. Trailing zeros to the right of the decimal ARE significant.
> 5. Trailing zeros in a whole number with the decimal shown ARE significant.
> 6. Trailing zeros in a whole number with no decimal shown are NOT significant.
> 7. Exact numbers have an INFINITE number of significant figures.
> 8. For a number in scientific notation: N x 10x, all digits comprising N ARE significant by the first 6 rules; "10" and "x" are NOT significant.
Contributor guide
Assessment
This issue has not been assessed yet.