[metapost] Bug with simple number comparisons with new number systems
luigi scarso
luigi.scarso at gmail.com
Tue Jul 28 09:53:01 CEST 2015
On Tue, Jul 28, 2015 at 9:21 AM, Toby Thurston <thurston at eml.cc> wrote:
> I'm getting strange results comparing numbers with the new number systems.
>
> Consider this program:
>
> show 0.0001 < 0.001, numbersystem, mpversion; end.
>
> With the default number system this gives
>
> >> true
> >> "scaled"
> >> "1.999" )
>
> on my log. But with the other number systems I get:
>
> >> true
> >> "double"
> >> "1.999" )
>
> >> false
> >> "binary"
> >> "1.999" )
>
> >> false
> >> "decimal"
> >> "1.999" )
>
> which is a bit unexpected...
>
> I'm using a version I compiled myself from source after you fixed the
> normaldeviate bug a couple of months ago.
> 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
>
> This is MetaPost, version 1.902 (TeX Live 2014) (kpathsea version 6.2.0)
> >> true
> >> "scaled" )
> This is MetaPost, version 1.902 (TeX Live 2014) (kpathsea version 6.2.0)
> >> true
> >> "double" )
> This is MetaPost, version 1.902 (TeX Live 2014) (kpathsea version 6.2.0)
> >> true
> >> "binary" )
> This is MetaPost, version 1.902 (TeX Live 2014) (kpathsea version 6.2.0)
> >> false
> >> "decimal" )
>
> I've posted an entry on the tracker. Toby
> --
> http://tug.org/metapost/
>
Thank you for the report, I will investigate soon.
--
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/metapost/attachments/20150728/9afd8566/attachment.html>
More information about the metapost
mailing list