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

Output 0.000009 instead of 9.00E-06 in invoicing and write cost with 2 decimal points #157

Closed
knikolla opened this issue May 1, 2024 · 2 comments · Fixed by #161
Closed
Assignees

Comments

@knikolla
Copy link
Collaborator

knikolla commented May 1, 2024

CCI-MOC/process_csv_report#35

@knikolla knikolla changed the title Output 0.000009 instead of 9.00E-06 in invoicing Output 0.000009 instead of 9.00E-06 in invoicing and write cost with 2 decimal points May 1, 2024
@QuanMPhm
Copy link
Contributor

@knikolla Just so I'm sure, you want me to modify calculate_storage_gb_hours.py, or the functions it calls, so that in the invoice it exports, the rate for Storage GB Hours will be 0.000009, and the cost row will have 2 decimal points?

Why do we worry about rounding here if we will round it elsewhere, like in your PR for the processing program?

@knikolla
Copy link
Collaborator Author

@QuanMPhm Yes. That is, the formatting when printing the CSV file for that value should not be expressed as 9 * 10^-6.

We worry about rounding here for consistency so that the numbers between this invoice and the final processed invoice match.

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 a pull request may close this issue.

2 participants