Re: a math question

From: <tom(at)tacocat(dot)net>
To: dmagick(at)gmail(dot)com
Cc: "Postgresql" <pgsql-general(at)postgresql(dot)org>
Subject: Re: a math question
Date: 2007-04-26 15:39:30
Message-ID: xDVsl78W.1177601970.9040970.tom@tacocat.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On 4/26/2007, "Chris" <dmagick(at)gmail(dot)com> wrote:

>tom wrote:
>
>> In pgsql I have to modify this a bit with 'cast (s_msgs as double
>> precision)' or 'cast(s_msgs as real)' in order to get floating point math.
>> ( cast(s_msgs as double precision)/S_msgs) and so on...
>>
>> Question: Is there a better way to get floating point math out of a set
>> of integers?
>
>Nope.

The way they treat math isn't new. cast one as real and the rest will
follow.

Any idea if it's going to be "better" or even something that can
realistically be benchmarked?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-04-26 15:42:22 Re: HP/Pgsql/DBD::Pg issue
Previous Message Oleg Bartunov 2007-04-26 15:20:27 Re: tsearch2 punctuation question