Re: metapost Digest, Vol 159, Issue 1

"Toby Thurston" <[email protected]> Wed, 29 Jan 2020 11:06:32 +0000
Newsgroups gmane.comp.tex.metapost
Message-ID <[email protected]>
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..

On Wed, 29 Jan 2020, at 11:00, [email protected] wrote:
> Send metapost mailing list submissions to
> 	[email protected]
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://tug.org/mailman/listinfo/metapost
> or, via email, send a message with subject or body 'help' to
> 	[email protected]
> 
> You can reach the person managing the list at
> 	[email protected]
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of metapost digest..."
> 
> 
> Today's Topics:
> 
>    1. roundd function (Walt Burkhard)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Tue, 28 Jan 2020 22:38:28 -0800
> From: Walt Burkhard <[email protected]>
> To: Metapost List <[email protected]>
> Subject: [metapost] roundd function
> Message-ID:
> 	<CAKfz9bC994uhVjw=k_pjwtiCsVbvGC7BMvwCHvkesk9Xb-11Zg@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> 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
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <https://tug.org/pipermail/metapost/attachments/20200128/628624ea/attachment-0001.html>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: test.mp
> Type: application/octet-stream
> Size: 266 bytes
> Desc: not available
> URL: 
> <https://tug.org/pipermail/metapost/attachments/20200128/628624ea/attachment-0001.obj>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> metapost mailing list
> [email protected]
> https://tug.org/mailman/listinfo/metapost
> 
> 
> ------------------------------
> 
> End of metapost Digest, Vol 159, Issue 1
> ****************************************
>

-- 
  Toby Thurston
  [email protected]
--
http://tug.org/metapost/