<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
Walter,</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
I suspect that the problem is due to the fact that most fractions <br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
of the form k/10000 cannot be represented exactly in binary, the <br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
internal formal used by metapost. And ever if it were, most</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
binary representations cannot be expressed exactly in only 4 <br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
decimal digits.<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
Cheers, Dan</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
P.S. For best help, a self-contained test.mp should be provided.<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font size="3" face="Courier New">Daniel H. Luecking [luecking@uark.edu]
<br>
Department of Mathematical Sciences<br>
1 University of Arkansas<br>
Fayetteville, AR, USA 72701-1201</font><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> metapost <metapost-bounces+luecking=uark.edu@tug.org> on behalf of Toby Thurston <thurston@eml.cc><br>
<b>Sent:</b> Wednesday, January 29, 2020 5:06 AM<br>
<b>To:</b> metapost@tug.org <metapost@tug.org><br>
<b>Subject:</b> Re: [metapost] metapost Digest, Vol 159, Issue 1</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">what is the definition of the roundd function?  it is not part of plain.mp, so I guess it is defined in format.mp that you are importing.  Looks like you will need to update it to work properly with the new number systems..<br>
<br>
On Wed, 29 Jan 2020, at 11:00, metapost-request@tug.org wrote:<br>
> Send metapost mailing list submissions to<br>
>        metapost@tug.org<br>
> <br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
>        <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__tug.org_mailman_listinfo_metapost&d=DwICAg&c=7ypwAowFJ8v-mw8AB-SdSueVQgSDL4HiiSaLK01W8HA&r=TC6doj34eEZMeTCOMVYeIK4ttwYpTurqDpMOi43sP18&m=93y_zMhfjS7TOChma91ZDqBtWVmaK_M7ebnR4vTQlUc&s=4E-YOigyAZnEHikLv7IP2jlkMb0P1Nerntofzz2d26M&e=">
https://urldefense.proofpoint.com/v2/url?u=https-3A__tug.org_mailman_listinfo_metapost&d=DwICAg&c=7ypwAowFJ8v-mw8AB-SdSueVQgSDL4HiiSaLK01W8HA&r=TC6doj34eEZMeTCOMVYeIK4ttwYpTurqDpMOi43sP18&m=93y_zMhfjS7TOChma91ZDqBtWVmaK_M7ebnR4vTQlUc&s=4E-YOigyAZnEHikLv7IP2jlkMb0P1Nerntofzz2d26M&e=</a>
<br>
> or, via email, send a message with subject or body 'help' to<br>
>        metapost-request@tug.org<br>
> <br>
> You can reach the person managing the list at<br>
>        metapost-owner@tug.org<br>
> <br>
> When replying, please edit your Subject line so it is more specific<br>
> than "Re: Contents of metapost digest..."<br>
> <br>
> <br>
> Today's Topics:<br>
> <br>
>    1. roundd function (Walt Burkhard)<br>
> <br>
> <br>
> ----------------------------------------------------------------------<br>
> <br>
> Message: 1<br>
> Date: Tue, 28 Jan 2020 22:38:28 -0800<br>
> From: Walt Burkhard <burkhard@cs.ucsd.edu><br>
> To: Metapost List <metapost@tug.org><br>
> Subject: [metapost] roundd function<br>
> Message-ID:<br>
>        <CAKfz9bC994uhVjw=k_pjwtiCsVbvGC7BMvwCHvkesk9Xb-11Zg@mail.gmail.com><br>
> Content-Type: text/plain; charset="utf-8"<br>
> <br>
> Hello,<br>
> I have occasion to use roundd with the numbersystem=double,<br>
> unfortunately this seems to not work correctly.   All seems to be<br>
> okay in the default number system!<br>
> <br>
> I have attached the test program  and show its output here.<br>
> <br>
> default number system:<br>
> 123.5679<br>
> 123.5679<br>
> double number system<br>
> 123.56789999999999<br>
> 123.56789999999999<br>
> <br>
> Is there any (easy) fix for this behavior?/<br>
> <br>
> Many thanks in advance.<br>
> <br>
> Walt Burkhard<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <br>
> <<a href=""></a>https://urldefense.proofpoint.com/v2/url?u=https-3A__tug.org_pipermail_metapost_attachments_20200128_628624ea_attachment-2D0001.html&d=DwICAg&c=7ypwAowFJ8v-mw8AB-SdSueVQgSDL4HiiSaLK01W8HA&r=TC6doj34eEZMeTCOMVYeIK4ttwYpTurqDpMOi43sP18&m=93y_zMhfjS7TOChma91ZDqBtWVmaK_M7ebnR4vTQlUc&s=kUmpqzwHmZuANGpPBpAxHIqfyGPLYpu7cbhMvgep2Ok&e=
 ><br>
> -------------- next part --------------<br>
> A non-text attachment was scrubbed...<br>
> Name: test.mp<br>
> Type: application/octet-stream<br>
> Size: 266 bytes<br>
> Desc: not available<br>
> URL: <br>
> <<a href=""></a>https://urldefense.proofpoint.com/v2/url?u=https-3A__tug.org_pipermail_metapost_attachments_20200128_628624ea_attachment-2D0001.obj&d=DwICAg&c=7ypwAowFJ8v-mw8AB-SdSueVQgSDL4HiiSaLK01W8HA&r=TC6doj34eEZMeTCOMVYeIK4ttwYpTurqDpMOi43sP18&m=93y_zMhfjS7TOChma91ZDqBtWVmaK_M7ebnR4vTQlUc&s=lvQIrRwmO9PeLf9-B59r9bfktwfYZgrq6njqkWIyCeM&e=
 ><br>
> <br>
> ------------------------------<br>
> <br>
> Subject: Digest Footer<br>
> <br>
> _______________________________________________<br>
> metapost mailing list<br>
> metapost@tug.org<br>
> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__tug.org_mailman_listinfo_metapost&d=DwICAg&c=7ypwAowFJ8v-mw8AB-SdSueVQgSDL4HiiSaLK01W8HA&r=TC6doj34eEZMeTCOMVYeIK4ttwYpTurqDpMOi43sP18&m=93y_zMhfjS7TOChma91ZDqBtWVmaK_M7ebnR4vTQlUc&s=4E-YOigyAZnEHikLv7IP2jlkMb0P1Nerntofzz2d26M&e=">
https://urldefense.proofpoint.com/v2/url?u=https-3A__tug.org_mailman_listinfo_metapost&d=DwICAg&c=7ypwAowFJ8v-mw8AB-SdSueVQgSDL4HiiSaLK01W8HA&r=TC6doj34eEZMeTCOMVYeIK4ttwYpTurqDpMOi43sP18&m=93y_zMhfjS7TOChma91ZDqBtWVmaK_M7ebnR4vTQlUc&s=4E-YOigyAZnEHikLv7IP2jlkMb0P1Nerntofzz2d26M&e=</a>
<br>
> <br>
> <br>
> ------------------------------<br>
> <br>
> End of metapost Digest, Vol 159, Issue 1<br>
> ****************************************<br>
><br>
<br>
-- <br>
  Toby Thurston<br>
  thurston@eml.cc<br>
--<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__tug.org_metapost_&d=DwICAg&c=7ypwAowFJ8v-mw8AB-SdSueVQgSDL4HiiSaLK01W8HA&r=TC6doj34eEZMeTCOMVYeIK4ttwYpTurqDpMOi43sP18&m=93y_zMhfjS7TOChma91ZDqBtWVmaK_M7ebnR4vTQlUc&s=JkDsKHAZImLIPbxvkZTzg-vQ4FRqa_0qYNgSMxh3szo&e=">https://urldefense.proofpoint.com/v2/url?u=http-3A__tug.org_metapost_&d=DwICAg&c=7ypwAowFJ8v-mw8AB-SdSueVQgSDL4HiiSaLK01W8HA&r=TC6doj34eEZMeTCOMVYeIK4ttwYpTurqDpMOi43sP18&m=93y_zMhfjS7TOChma91ZDqBtWVmaK_M7ebnR4vTQlUc&s=JkDsKHAZImLIPbxvkZTzg-vQ4FRqa_0qYNgSMxh3szo&e=</a>
<br>
</div>
</span></font></div>
</body>
</html>