Re: Data Type precision

From: Jie Liang <jliang(at)ipinc(dot)com>
To: Jerome Raupach <jraupach(at)intelcom(dot)fr>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Data Type precision
Date: 2000-09-26 17:41:20
Message-ID: 39D0DFC0.A4C00EFA@ipinc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)ipinc(dot)com
www.ipinc.com

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2000-09-26 18:42:55 Three Unrelated Questions
Previous Message Edipo E. F. Melo 2000-09-26 16:25:01 date is not equals to dia/month/year: what's wrong?