<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 28, 2015 at 9:21 AM, Toby Thurston <span dir="ltr"><<a href="mailto:thurston@eml.cc" target="_blank">thurston@eml.cc</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm getting strange results comparing numbers with the new number systems.<br>
<br>
Consider this program:<br>
<br>
show 0.0001 < 0.001, numbersystem, mpversion; end.<br>
<br>
With the default number system this gives<br>
<br>
>> true<br>
>> "scaled"<br>
>> "1.999" )<br>
<br>
on my log. But with the other number systems I get:<br>
<br>
>> true<br>
>> "double"<br>
>> "1.999" )<br>
<br>
>> false<br>
>> "binary"<br>
>> "1.999" )<br>
<br>
>> false<br>
>> "decimal"<br>
>> "1.999" )<br>
<br>
which is a bit unexpected...<br>
<br>
I'm using a version I compiled myself from source after you fixed the normaldeviate bug a couple of months ago.<br>
Testing with V1.902, the only other version I have on hand, I only get the error with "decimal". But it does not appear to matter what numbers I use. I get the same results with "1<2", or "1/4<1/2", etc<br>
<br>
This is MetaPost, version 1.902 (TeX Live 2014) (kpathsea version 6.2.0)<br>
>> true<br>
>> "scaled" )<br>
This is MetaPost, version 1.902 (TeX Live 2014) (kpathsea version 6.2.0)<br>
>> true<br>
>> "double" )<br>
This is MetaPost, version 1.902 (TeX Live 2014) (kpathsea version 6.2.0)<br>
>> true<br>
>> "binary" )<br>
This is MetaPost, version 1.902 (TeX Live 2014) (kpathsea version 6.2.0)<br>
>> false<br>
>> "decimal" )<br>
<br>
I've posted an entry on the tracker. Toby<br>
--<br>
<a href="http://tug.org/metapost/" rel="noreferrer" target="_blank">http://tug.org/metapost/</a><br>
</blockquote></div><br><br clear="all"><div><br></div><div>Thank you for the report, I will investigate soon.</div><div><br></div>-- <br><div class="gmail_signature">luigi<br></div>
</div></div>