abs value, power, sqrt

From: Michael Olivier <molivier(at)yahoo(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: abs value, power, sqrt
Date: 1998-11-20 05:53:03
Message-ID: 19981120055303.6281.rocketmail@send105.yahoomail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi folks,

I previously posted this to pgsql-novice but haven't gotten an answer,
so I thought I'd try here.

I need a way to get abs value of a floating point number and (possibly
separate function for) abs value of an integer in a select statement.
Is there a function to do this? If not, how can I write a function to
do it?

Also how do I do squares and square roots? I saw some \|/ type notation
for square root in an SQL book, but I didn't get postgres to take that.

thanks,
Michael

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Ulf Mehlig 1998-11-20 07:00:01 Re: [SQL] abs value, power, sqrt
Previous Message Michael Olivier 1998-11-20 05:15:00 Postgres 6.4 binary RPM for RH 5.1?