[metapost] metapost Digest, Vol 159, Issue 1

Toby Thurston thurston at eml.cc
Wed Jan 29 12:06:32 CET 2020


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, metapost-request at tug.org wrote:
> Send metapost mailing list submissions to
> 	metapost at tug.org
> 
> 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
> 	metapost-request at tug.org
> 
> You can reach the person managing the list at
> 	metapost-owner at tug.org
> 
> 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 <burkhard at cs.ucsd.edu>
> To: Metapost List <metapost at tug.org>
> Subject: [metapost] roundd function
> Message-ID:
> 	<CAKfz9bC994uhVjw=k_pjwtiCsVbvGC7BMvwCHvkesk9Xb-11Zg at 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
> metapost at tug.org
> https://tug.org/mailman/listinfo/metapost
> 
> 
> ------------------------------
> 
> End of metapost Digest, Vol 159, Issue 1
> ****************************************
>

-- 
  Toby Thurston
  thurston at eml.cc


More information about the metapost mailing list.