[metapost] Problem with decimal numbersystem

luigi scarso luigi.scarso at gmail.com
Tue Sep 19 09:42:38 CEST 2017


On Tue, Sep 19, 2017 at 8:34 AM, luigi scarso <luigi.scarso at gmail.com> wrote:
> On Tue, Sep 19, 2017 at 7:14 AM, luigi scarso <luigi.scarso at gmail.com> wrote:
>> On Tue, Sep 19, 2017 at 6:43 AM, Franck Pastor <franck.pastor at me.com> wrote:
>>> Hello,
>>>
>>> The decimal number system implemented in MetaPost (mplib?) seems to be bugged.
>
> Confirmed, see
> http://tracker.luatex.org/view.php?id=1000
>
> --
> luigi

hm,
the following code is ok in context
\starttext
\startMPcode{decimalfun}
    numberprecision:=45;
    label(decimal 1/3, origin);
\stopMPcode

\startMPcode{binaryfun}
 numberprecision:=47;
 label(decimal 1/3, origin);
\stopMPcode

\startMPcode{doublefun}
    label(decimal 1/3, origin);
\stopMPcode
\stoptext


It seems that mplib in lualatex is de-initialize two times, the second
one by the lua garbage collector.
I need to see where/why.


-- 
luigi


More information about the metapost mailing list