From: Saurabh Mittal <lattim@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: ROUND function ??
Date: Tue, 9 Oct 2001 09:15:42 +0530
Message-ID: <OE25NZwwPcMFlF8HGmC0000b0ea@hotmail.com> (raw)
Hi,
select ROUND(0.5) ; returns 0
select ROUND(1.5) ; returns 2;
select ROUND(2.5) ; returns 2;
select ROUND(3.5) ; returns 4;....so on .
I'm sure you would have figured out what's happening !!! Why ??
How do I get to approximate any number x.5 as x+1 ??
Saurabh
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: lattim@hotmail.com
Subject: Re: ROUND function ??
In-Reply-To: <OE25NZwwPcMFlF8HGmC0000b0ea@hotmail.com>
* 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