Re: New numbersystems strange behaviour of arclength

luigi scarso <[email protected]> Tue, 12 Mar 2019 19:20:44 +0100
Newsgroups gmane.comp.tex.metapost
Message-ID <CAG5iGsCcKPQSoVeQ-xpzro4sGD5NNhu=PNjy6jpV9a0hmoe6pw@mail.gmail.com>
On Tue, Mar 12, 2019 at 7:03 PM Karel <[email protected]> wrote:

> Dear Luigi,
>
> the following code
>
> beginfig(0);
> path s;
> s:=fullcircle scaled 30mm;
> for k=0 upto 18: draw origin--point(arctime ((k/36)*arclength s) of s)
> of s; endfor
> endfig;
> end
>
> gives very strange results when used with
> numbersystem=decimal or binary (mpost 2.00 for TeXlive 2019).
>
> With scaled a double numbersystem everything works fine.
>
>
hm, I see. Small example:

if numbersystem="decimal":
 numberprecision:=8;
fi;


beginfig(0);
path s;
s:=fullcircle scaled 30mm;
tracingall;
for k=1 upto 1: draw origin--point(arctime ((k/36)*arclength s) of s)
of s; endfor
endfig;
end.



> It would be also nice (from practical point of view) if the numbersystem
> could be read by mpost from the compiled file, e.g. from commented first
> line like the format in TeX file.
>
>
Ok, but I fear that I have not time  to fix it (them)  in time  for texlive
2019.

-- 
luigi

--
http://tug.org/metapost/