Bug#632031: convert: gray colorspace creates broken postscript
- To: Bastien ROUCARIES <roucaries.bastien@gmail.com>
- Cc: 632031@bugs.debian.org, Vincent Fourmond <fourmond@gmail.com>, Christoph Nodes <bug-debian@bfw-online.de>
- Subject: Bug#632031: convert: gray colorspace creates broken postscript
- From: Christoph Nodes <nodes@bfw-online.de>
- Date: Fri, 1 Jul 2011 14:28:50 +0200
- Message-id: <[🔎] 20110701142850.7dcc00ed@lar.bfw.de>
- Reply-to: Christoph Nodes <nodes@bfw-online.de>, 632031@bugs.debian.org
- In-reply-to: <BANLkTimqtmjJEc5uOtZP9edXPdrzUdWZyg@mail.gmail.com>
- References: <20110629081659.24761.10697.reportbug@lar.bfw.de> <BANLkTin75LuzDjNGH9kPjjGdRLuDBeiQ7g@mail.gmail.com> <20110629132126.62e8153d@lar.bfw.de> <BANLkTinZ130r7nbwDWNXwOwLEtn2Bvoq2g@mail.gmail.com> <20110629145932.1dce1216@lar.bfw.de> <BANLkTinFppv+w3TT63CnvS+ojWY3ZOwxjA@mail.gmail.com> <20110629165132.591bd2b0@lar.bfw.de> <BANLkTimju238NY2NxnhR8mA4Kpy0N1yz9w@mail.gmail.com> <20110630093647.3dae18a3@lar.bfw.de> <BANLkTimZmJMML1D9yoYzAfC8eeoUiKwC2w@mail.gmail.com> <20110630115912.52b450df@lar.bfw.de> <BANLkTimZ+07-pdWo0m=qQt7XBxq6EWY_yQ@mail.gmail.com> <20110630124555.33143acc@lar.bfw.de> <BANLkTimqtmjJEc5uOtZP9edXPdrzUdWZyg@mail.gmail.com>
On Thu, 30 Jun 2011 15:04:11 +0200
Bastien ROUCARIES <roucaries.bastien@gmail.com> wrote:
> I will close this bug
Thanks for your effort. I already stated that the problem is completely
on our side and that its not caused by imagemagick, so there is no bug.
> if you could not reproduce the following
> faillure with:
> - printf("%.20f\n",someint < 2^64 -1)
>
> and fesetround(mode)
> set to rounding up mode
>
> I suspect it could not be the case
> Between 2^52=4,503,599,627,370,496 and 2^53=9,007,199,254,740,992 the
> representable numbers are exactly the integers. For the next range,
> from 253 to 254, everything is multiplied by 2, so the representable
> numbers are the even ones, etc. Conversely, for the previous range
> from 251 to 252, the spacing is 0.5, etc.
>
> You are no conformant to IEEE 754-2008 or IEEE_754-1985
thats true.
> 0^- will be rounded to 0^+ with your shame
>
> The only bug is that imagemagick should test IEEE_754-1985
The problem was quite easily solved by not do our "rounding" for
other format strings than %f, so that the %g printing in imagemagick is
not affected. Additionally we excluded floating point numbers with zero
fractional part, so even with %.20f integers are printed correctly.
Best regards,
Christoph
Reply to: