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

Add significant figures support to fmt_scientific() and vec_fmt_scientific() #1411

Merged
merged 13 commits into from
Aug 18, 2023

Conversation

rich-iannone
Copy link
Member

Previously, fmt_number() and fmt_bytes() (and their vec_fmt_*() analogues) had support for significant figures. This PR includes the n_sigfig argument in fmt_scientific(). This argument is compatible with the from_column() helper and so the use case where measurement precision varies by row (and should be reflected in the formatting of the value in scientific notation) can now be realized.

@rich-iannone rich-iannone marked this pull request as ready for review August 17, 2023 21:48
@rich-iannone rich-iannone merged commit a788c49 into master Aug 18, 2023
@rich-iannone rich-iannone deleted the sci-formatting-sig-figures branch August 18, 2023 01:30
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 this pull request may close these issues.

1 participant