Re: POWER vs. POW ???

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: POWER vs. POW ???
Date: 2005-11-28 22:30:08
Message-ID: 200511282230.jASMU8222564@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Christopher Kings-Lynne wrote:
> Also, POW() is not documented here:

I think POW is just there for backward compatibility and people should
use POWER().

---------------------------------------------------------------------------

>
> http://www.postgresql.org/docs/8.1/interactive/functions-math.html
>
> Chris
>
> Christopher Kings-Lynne wrote:
> > How come these give slightly different results?
> >
> > test=# SELECT POW(2,-2);
> > pow
> > ------
> > 0.25
> > (1 row)
> >
> > test=# SELECT POWER(2,-2);
> > power
> > -------
> > 0.25
> > (1 row)
> >
> >
> > (Note width of result field.)
> >
> > Chris
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 4: Have you searched our list archives?
> >
> > http://archives.postgresql.org
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-11-28 22:45:03 Re: TRUNC vs. TRUNCATE
Previous Message Bruce Momjian 2005-11-28 22:21:51 Re: comment doesn't accept expressions returning text