<p dir="ltr"><br><br></p>
<p dir="ltr">On Sat, Jan 25, 2014 at 9:05 AM, Franck Pastor <<a href="mailto:franck.pastor@me.com">franck.pastor@me.com</a>> wrote:<br>
><br>
> Hello,<br>
><br>
> I am still practicing with the brand new double number system. This time I noticed something wrong with the pi number as it is defined in the Metafun format.<br>
><br>
> With numbersystem=scaled,  "show pi;"  returns (as expected)<br>
><br>
> >> 3.14159<br>
><br>
> Now, with numbersystem set to double, it returns<br>
><br>
> >> 3.1415926<br>
><br>
> Only two more decimals, whereas I expected something with plenty of decimals, like<br>
><br>
> 3.14159265358979<br>
><br>
> Is it a bug? or a feature? I couldn't help noticing that Metafun's answer is precisely the number version of the TeX's distribution to be found in TeX Live 2013…<br>
><br>
> Thanks,<br>
><br>
> Franck Pastor<br>
> --<br>
> <a href="http://tug.org/metapost/">http://tug.org/metapost/</a><br>
I see this:</p>
<p dir="ltr">$> cat <a href="http://test.mp">test.mp</a><br>
pi := 3.14159265358979323846;<br>
show pi;<br>
end.</p>
<p dir="ltr">$> mpost --version <br>
MetaPost 1.803 (TeX Live 2013)<br>
The MetaPost source code in the public domain.<br>
MetaPost also uses code available under the<br>
GNU Lesser General Public License (version 3 or later);<br>
therefore MetaPost executables are covered by the LGPL.<br>
There is NO warranty.<br>
For more information about these matters, see the file<br>
COPYING.LESSER or <<a href="http://gnu.org/licenses/lgpl.html">http://gnu.org/licenses/lgpl.html</a>>.<br>
Original author of MetaPost: John Hobby.<br>
Author of the CWEB MetaPost: Taco Hoekwater.</p>
<p dir="ltr">$> for j in scaled double binary decimal; do  echo "%%%%% $j "; mpost  -numbersystem=$j  <a href="http://test.mp">test.mp</a>; done <br>
%%%%% scaled <br>
This is MetaPost, version 1.803 (kpathsea version 6.1.1)<br>
(/opt/luatex/standalone-mkiv-new/tex/texmf/metapost/base/<a href="http://mpost.mp">mpost.mp</a> (/opt/luatex/standalone-mkiv-new/tex/texmf/metapost/base/<a href="http://plain.mp">plain.mp</a><br>
Preloading the plain mem file, version 1.004) ) (./<a href="http://test.mp">test.mp</a><br>
>> 3.14159 )<br>
Transcript written on test.log.<br>
%%%%% double <br>
This is MetaPost, version 1.803 (kpathsea version 6.1.1)<br>
(/opt/luatex/standalone-mkiv-new/tex/texmf/metapost/base/<a href="http://mpost.mp">mpost.mp</a> (/opt/luatex/standalone-mkiv-new/tex/texmf/metapost/base/<a href="http://plain.mp">plain.mp</a><br>
Preloading the plain mem file, version 1.004) ) (./<a href="http://test.mp">test.mp</a><br>
>> 3.14159265358979 )<br>
Transcript written on test.log.<br>
%%%%% binary <br>
This is MetaPost, version 1.803 (kpathsea version 6.1.1)<br>
(/opt/luatex/standalone-mkiv-new/tex/texmf/metapost/base/<a href="http://mpost.mp">mpost.mp</a> (/opt/luatex/standalone-mkiv-new/tex/texmf/metapost/base/<a href="http://plain.mp">plain.mp</a><br>
Preloading the plain mem file, version 1.004) ) (./<a href="http://test.mp">test.mp</a><br>
>> 3.14159265358979 )<br>
Transcript written on test.log.<br>
%%%%% decimal <br>
This is MetaPost, version 1.803 (kpathsea version 6.1.1)<br>
(/opt/luatex/standalone-mkiv-new/tex/texmf/metapost/base/<a href="http://mpost.mp">mpost.mp</a> (/opt/luatex/standalone-mkiv-new/tex/texmf/metapost/base/<a href="http://plain.mp">plain.mp</a><br>
Preloading the plain mem file, version 1.004) ) (./<a href="http://test.mp">test.mp</a><br>
>> 3.14159265358979 )<br>
Transcript written on test.log.<br></p>
<p dir="ltr">-- <br>
luigi<br>
</p>
<div class="gmail_quot<blockquote class=" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I am still practicing with the brand new double number system. This time I noticed something wrong with the pi number as it is defined in the Metafun format.<br>
<br>
With numbersystem=scaled,  "show pi;"  returns (as expected)<br>
<br>
>> 3.14159<br>
<br>
Now, with numbersystem set to double, it returns<br>
<br>
>> 3.1415926<br>
<br>
Only two more decimals, whereas I expected something with plenty of decimals, like<br>
<br>
3.14159265358979<br>
<br>
Is it a bug? or a feature? I couldn't help noticing that Metafun's answer is precisely the number version of the TeX's distribution to be found in TeX Live 2013…<br>
<br>
Thanks,<br>
<br>
Franck Pastor<br>
--<br>
<a href="http://tug.org/metapost/" target="_blank">http://tug.org/metapost/</a><br>
</div>