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

Support precision in fmt_scientific_notation #555

Merged
merged 3 commits into from
Nov 24, 2022

Conversation

nicksenger
Copy link
Contributor

Currently the precision field is ignored when formatting a Decimal in scientific notation. This PR updates fmt_scientific_notation to respect the precision if specified.

@paupino
Copy link
Owner

paupino commented Nov 24, 2022

Sorry for the delay in reviewing this!

Thank you for your help here. All in all, I like the direction however want to be a bit more deliberate with regards to when precision is defined vs not. What I'll do is I'll merge this then do a small refactor in a follow up PR to flip it around a bit. All in all, it'll be more verbose however I think it is a bit easier to follow rather than keeping track of Some(precision) vs None etc.

Again, sorry for the delay and thank you for your contribution!

@paupino paupino merged commit 31dad0a into paupino:master Nov 24, 2022
@nicksenger
Copy link
Contributor Author

Sounds good, thank you!

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.

None yet

2 participants