Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group