[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#632031: convert: gray colorspace creates broken postscript



On Thu, Jun 30, 2011 at 9:36 AM, Christoph Nodes <nodes@bfw-online.de> wrote:
> On Wed, 29 Jun 2011 17:18:17 +0200
> Bastien ROUCARIES <roucaries.bastien@gmail.com> wrote:
>
>> On Wed, Jun 29, 2011 at 4:51 PM, Christoph Nodes
>> <nodes@bfw-online.de> wrote:
>> > On Wed, 29 Jun 2011 15:37:08 +0200
>> > Bastien ROUCARIES <roucaries.bastien@gmail.com> wrote:
>> >
>> >> Could you post also the printf patch and the rational for this
>> >> patch ?
>>
>> Do you know this bug?
>> http://sourceware.org/bugzilla/show_bug.cgi?id=5044
>>
>> You could get the correct version without using your hack by doing
>> fesetround(mode)
>> and after using directly printf
>
> Thanks for the hint, but fesetround affects the rounding of
> the result of floating-point calculations not the rounding of printf.
> We only want to affect the printing.


The patch affect it during printf also.

You could save round before printf, set rounding than restore it.

With your patch even exact double like 1.0e0 are rounded up !

Bastien

>
>
> Best regards,
> Christoph
>



Reply to: