pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: tuan <atuan_h@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: Division in Postgre
Date: Sun, 24 Apr 2005 16:18:36 +0700
Message-ID: <BAY12-DAV1034161CFA2DABEF05BE2A972F0@phx.gbl> (raw)

In sql server my division select cast(3 as float)/10 is 0.29999999999.
But in postgres select cast(3 as float8)/10 is 0.3. How to get result like
sql server?
Thank you. Sorry for my english



view thread (3+ messages)  latest in thread

Message-ID: <BAY12-DAV1034161CFA2DABEF05BE2A972F0@phx.gbl>
Permalink:  ../BAY12-DAV1034161CFA2DABEF05BE2A972F0@phx.gbl/
Also on:    postgresql.org/message-id/BAY12-DAV1034161CFA2DABEF05BE2A972F0@phx.gbl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: atuan_h@hotmail.com
  Subject: Re: Division in Postgre
  In-Reply-To: <BAY12-DAV1034161CFA2DABEF05BE2A972F0@phx.gbl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox