Skip to content

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.

2 participants