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

Numerical inaccuracies #29

Open
bersbersbers opened this issue Sep 20, 2021 · 0 comments
Open

Numerical inaccuracies #29

bersbersbers opened this issue Sep 20, 2021 · 0 comments

Comments

@bersbersbers
Copy link

The following outputs -1.11022302462516e-16 instead of 0:

udunits2::ud.convert(1, "in", "in") - 1

This leads to cairo_pdf saving images with size 71 pt x 71 pt rather than 72 pt x 72 pt according to pdfinfo, which is quite visible in exactly aligned images.

I wonder if trivial conversions (in -> in, for example) could be skipped to maintain accuracy.

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

No branches or pull requests

1 participant