Nothing Special   »   [go: up one dir, main page]

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

C/C++/Java/Ocaml: Print doubles with maximal precision #283

Closed
andreasabel opened this issue Jan 2, 2020 · 0 comments
Closed

C/C++/Java/Ocaml: Print doubles with maximal precision #283

andreasabel opened this issue Jan 2, 2020 · 0 comments
Assignees
Labels
C++ C Java OCaml printer Concerning the generated printer
Milestone

Comments

@andreasabel
Copy link
Member

The C backend etc. produce a printer that truncates the fractional digits to 5, the default behavior of %g. Change this to %.15g to get the 15 guaranteed significant digits of double precision floats.

@andreasabel andreasabel added OCaml C++ C Java printer Concerning the generated printer labels Jan 2, 2020
@andreasabel andreasabel added this to the 2.8.4 milestone Jan 2, 2020
@andreasabel andreasabel self-assigned this Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ C Java OCaml printer Concerning the generated printer
Projects
None yet
Development

No branches or pull requests

1 participant