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

Handle mpc80 generation where zero padding of 9.999 was writing 010.00 #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

petervanwylen
Copy link

I found a unique situation where if day was 9.9999996 or higher, rasec was 9.9996 or higher or decsec was 9.996 or higher, the current would would write out something like 010.00 or 010.000 because the if statement was padding it and then the fixed setprecision was rounding up to 10. Using setfill and setw with setprecision fixes this problem. I hope this helps!

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