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

Fix precision loss on consumed_energy.csv #71

Closed

Conversation

JRodez
Copy link
Contributor

@JRodez JRodez commented Jul 12, 2024

Fix precision loss in consumed_energy.csv
Formatting with C99 "%g" cuts by 2 the precision of doubles, which is used to store dates.
Now "%lf" is used instead, which is the standard format for doubles.

Checklist

Branch name.

  • Descriptive and short
  • Use hyphens to separate words

Branch content.

  • Only dedicated to the problem.
  • Based on Batsim's official master branch.
  • Straightforward. Just a sequence of commits. Does not contain merge commits.
  • Test results are not worse than before. How to run Batsim tests?

Fix precision loss in consumed_energy.csv
Formatting with C99 "%g" cuts by 2 the precision of doubles, which is used to store dates. 
Now "%lf" is used instead, which is the standard format for doubles.
@mpoquet
Copy link
Collaborator

mpoquet commented Jul 12, 2024

Thanks! Merged in f225198.

@mpoquet mpoquet closed this Jul 12, 2024
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