Re: POWER vs. POW ??? - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: POWER vs. POW ???
Date
Msg-id 200511282230.jASMU8222564@candle.pha.pa.us
Whole thread Raw
In response to Re: POWER vs. POW ???  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List 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@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: comment doesn't accept expressions returning text
Next
From: Bruce Momjian
Date:
Subject: Re: TRUNC vs. TRUNCATE