Re: [HACKERS] 123.45 - 123 = 0.45

Vince Vielhaber <vev@michvhf.com>

From: Vince Vielhaber <vev@michvhf.com>
To: Sferacarta Software <sferac@bo.nettuno.it>
Cc: pgsql-hackers@postgresql.org
Date: 1998-12-15T15:34:42Z
Lists: pgsql-hackers
On Tue, 15 Dec 1998, Sferacarta Software wrote:

> Hi all,
> 
> 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)

Are you trying to subtract or divide?   Your select is subtraction,
your question was division.

Vince.
-- 
==========================================================================
Vince Vielhaber -- KA8CSH   email: vev@michvhf.com   flame-mail: /dev/null
       # include <std/disclaimers.h>                   TEAM-OS2
   Online Searchable Campground Listings    http://www.camping-usa.com
       "There is no outfit less entitled to lecture me about bloat
               than the federal government"  -- Tony Snow
==========================================================================