Re: [HACKERS] 123.45 - 123 = 0.45 - Mailing list pgsql-hackers

From Oleg Broytmann
Subject Re: [HACKERS] 123.45 - 123 = 0.45
Date
Msg-id Pine.SOL2.3.96.SK.981215160735.25091W-100000@sun.med.ru
Whole thread Raw
In response to 123.45 - 123 = 0.45  (Sferacarta Software <sferac@bo.nettuno.it>)
List pgsql-hackers
Hello!

On Tue, 15 Dec 1998, Sferacarta Software wrote:
> I tried to divide 123.45 by 123.00 but PostgreSQL gives me a wrong
> result:
> 
> hygea=> select 123.45 - 123.00;
>          ?column?
> -----------------
> 0.450000000000003
> (1 row)
  I cannot understand anything. You said "to divide" and then "123.45 - 123.00".
Are you trying to divide or to substract?

Oleg.
----    Oleg Broytmann  National Research Surgery Centre  http://sun.med.ru/~phd/          Programmers don't die, they
justGOSUB without RETURN.
 



pgsql-hackers by date:

Previous
From: Sferacarta Software
Date:
Subject: 123.45 - 123 = 0.45
Next
From: Sferacarta Software
Date:
Subject: Re[2]: [HACKERS] JOIN syntax. Examples?