roundd function
Walt Burkhard <[email protected]> Tue, 28 Jan 2020 22:38:28 -0800
| Newsgroups | gmane.comp.tex.metapost |
|---|---|
| Message-ID | <CAKfz9bC994uhVjw=k_pjwtiCsVbvGC7BMvwCHvkesk9Xb-11Zg@mail.gmail.com> |
Hello, I have occasion to use roundd with the numbersystem=double, unfortunately this seems to not work correctly. All seems to be okay in the default number system! I have attached the test program and show its output here. default number system: 123.5679 123.5679 double number system 123.56789999999999 123.56789999999999 Is there any (easy) fix for this behavior?/ Many thanks in advance. Walt Burkhard -- http://tug.org/metapost/
test.mp
(application/octet-stream, 266 B) - not displayed