Received: from ubik.melog.com.pl (IDENT:qmailr@ubik.melog.com.pl [212.160.91.66]) by hub.org (8.9.3/8.9.3) with SMTP id IAA98694 for ; Thu, 12 Aug 1999 08:32:03 -0400 (EDT) (envelope-from bart@bart.w-wa.pl) Received: (qmail 14056 invoked from network); 12 Aug 1999 12:32:22 -0000 Received: from localhost (HELO bart.w-wa.pl) (bart@127.0.0.1) by localhost with SMTP; 12 Aug 1999 12:32:22 -0000 Sender: bart Message-ID: <37B2BED6.1F7005E2@bart.w-wa.pl> Date: Thu, 12 Aug 1999 14:32:22 +0200 From: Bart Ogryczak Reply-To: bart@bart.w-wa.pl Organization: Covert X-Mailer: Mozilla 4.6 [en] (X11; U; Linux 2.2.9 i586) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: converting text to float? Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit Hey, I'm trying hard to convert text to float, and all i get are messages like this: select float4(wartosc) from tblwartosci ; ERROR: Function 'float4(text)' does not exist There is more than one function that satisfies the given argument types You will have to retype your query using explicit typecasts select float4(int(wartosc)) from tblwartosci ; ERROR: pg_atoi: error in "285.75": can't parse ".75" Table = tblwartosci +----------------------------------+----------------------------------+-------+ | Field | Type | Length| +----------------------------------+----------------------------------+-------+ . . | wartosc | text | var | +----------------------------------+----------------------------------+-------+ Is there a resonable way to do text to float conversion? bart -- bart@bart.w-wa.pl || http://www.bart.w-wa.pl