BUG #3230: Division problem

From: "Jeferson Kasper" <jefersonkasper(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #3230: Division problem
Date: 2007-04-16 12:33:12
Message-ID: 200704161233.l3GCXCrx087518@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: 3230
Logged by: Jeferson Kasper
Email address: jefersonkasper(at)gmail(dot)com
PostgreSQL version: 8.1.5
Operating system: Linux RedHat 9
Description: Division problem
Details:

i was trying to divide a number and the result is always wrong, and i tried
to calculate in psql this query:

select (30/50);

and the result was zero ( 0 ), and it have to be 0.6...
i dont know what i have done wrong... but, i think its a bug.
thanks for all.

Jeferson Kasper

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Amorn Buchheit 2007-04-16 17:28:36 BUG #3231: Duplicate rows primary key bug
Previous Message ALEXEY PARSHIN 2007-04-16 09:12:04 BUG #3229: Incorrect temp table work