From: Tom Lane <tgl@sss.pgh.pa.us>
To: pocm@rnl.ist.utl.pt
Cc: pgsql-sql@postgresql.org
Subject: Re: Fractional Results
Date: Fri, 01 Feb 2002 23:39:15 -0500
Message-ID: <14772.1012624755@sss.pgh.pa.us> (raw)
In-Reply-To: <874rl0y8pq.fsf@localhost.localdomain>
References: <874rl0y8pq.fsf@localhost.localdomain>
pocm@rnl.ist.utl.pt (Paulo J. Matos) writes:
> After some testing i found out that temp1.espl / temp2.iluminados
> gives us always the floor of the real value.
If these are integers, try casting them to floats before dividing.
Integer division is generally understood to yield the floor().
regards, tom lane
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: tgl@sss.pgh.pa.us, pocm@rnl.ist.utl.pt
Subject: Re: Fractional Results
In-Reply-To: <14772.1012624755@sss.pgh.pa.us>
* 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