From: Michael Olivier <molivier@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: abs value, power, sqrt
Date: Thu, 19 Nov 1998 21:53:03 -0800 (PST)
Message-ID: <19981120055303.6281.rocketmail@send105.yahoomail.com> (raw)
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: molivier@yahoo.com
Subject: Re: abs value, power, sqrt
In-Reply-To: <19981120055303.6281.rocketmail@send105.yahoomail.com>
References: <19981120055303.6281.rocketmail@send105.yahoomail.com>
* 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