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

Rounding a real when printing #525

Closed
stoudamire87 opened this issue Nov 25, 2022 · 1 comment
Closed

Rounding a real when printing #525

stoudamire87 opened this issue Nov 25, 2022 · 1 comment
Labels

Comments

@stoudamire87
Copy link

Hi Jacob et al.

First of all, thanks for your job.

I would like to know if it possible to round a real number when printing to avoid the round off error in real numbers, since compact_real only trim 0s.

An example can be the output file of test2:

"VARIABLE": "Vz", "UNITS": "km/s", "FRAME": "J2000", "CENTER": "EARTH", "DATA": [ 0.30000000000000001E-2, 0.29999999999999999E-1, 0.40000000000000001E-1 ]

Best regards

@jacobwilliams
Copy link
Owner

jacobwilliams commented Dec 20, 2022

The real_format options gives you some control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants