BUG #3791: Bug in aritmethic calculations

From: "Michailas" <michailas(dot)p(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #3791: Bug in aritmethic calculations
Date: 2007-11-30 09:18:23
Message-ID: 200711300918.lAU9INl5025926@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 3791
Logged by: Michailas
Email address: michailas(dot)p(at)gmail(dot)com
PostgreSQL version: 8.2.4-2
Operating system: Debian
Description: Bug in aritmethic calculations
Details:

postgres=# SELECT abs(300 - 200)/200*100 as bad, abs(300-200)*100/200 as
good;

bad | good
-----+------
0 | 50
(1 row)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Marek 2007-11-30 10:00:03 BUG #3792: cluster in UTF deny database in LATIN2
Previous Message NikhilS 2007-11-30 07:44:53 Re: BUG #3774: create table like including index doesn't update pg_constraints with primary key