From: Jie Liang <jliang@ipinc.com>
To: Jerome Raupach <jraupach@intelcom.fr>
Cc: pgsql-sql@postgresql.org
Subject: Re: Data Type precision
Date: Tue, 26 Sep 2000 10:41:20 -0700
Message-ID: <39D0DFC0.A4C00EFA@ipinc.com> (raw)
References: <39D053D5.80EE373F@intelcom.fr>
Hi, there,
You can use function:
urldb=# select round(234.356534,2);
round
--------
234.36
(1 row)
Jerome Raupach wrote:
> CREATE TABLE TR (f1 FLOAT4, f2 INT4, f3 INT4) ;
>
> UPDATE TR SET f1=f2/f3::FLOAT4 ;
>
> f1 -> xxxxxx,xxxxxx - but I want f1 -> xxxxxx,xx.
> (6,6) (6,2)
>
> anybody can help me ?
> Thanks. Jerome.
--
Jie LIANG
Internet Products Inc.
10350 Science Center Drive
Suite 100, San Diego, CA 92121
Office:(858)320-4873
jliang@ipinc.com
www.ipinc.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: jliang@ipinc.com, jraupach@intelcom.fr
Subject: Re: Data Type precision
In-Reply-To: <39D0DFC0.A4C00EFA@ipinc.com>
References: <39D053D5.80EE373F@intelcom.fr> <39D0DFC0.A4C00EFA@ipinc.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