BUG #2211: select (1::float-1::float)*(-1) = -0 ??

From: "Tiago D(dot) J(dot)" <tiago(at)mdtestudio(dot)com(dot)br>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2211: select (1::float-1::float)*(-1) = -0 ??
Date: 2006-01-25 22:49:02
Message-ID: 20060125224902.897AAF0A2F@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 2211
Logged by: Tiago D. J.
Email address: tiago(at)mdtestudio(dot)com(dot)br
PostgreSQL version: 8.1
Operating system: Slackware 10.2
Description: select (1::float-1::float)*(-1) = -0 ??
Details:

Hi people,
I think that anything * 0, or 0*anything should be zero.
But run this query :
select (1::float-1::float)*(-1)

it returns -0

Sorry, my english is so poor,
I hope that i'm helping you with this information.

Tiago

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Walter Roeland 2006-01-26 03:38:56 BUG #2212: Extracting array from 2 dim array may be incorrect
Previous Message Michael Fuhr 2006-01-25 21:59:54 Re: BUG #2208: Low performance on select