Skip to content

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

Open
petervanwylen wants to merge 1 commit into
lsst-dm:mainfrom
petervanwylen:main
Open

petervanwylen wants to merge 1 commit into
lsst-dm:mainfrom
petervanwylen:main

Conversation

@petervanwylen

Copy link
Copy Markdown

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