Re: chop off non-meaningful digits

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "SunWuKung" <Balazs(dot)Klein(at)t-online(dot)hu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: chop off non-meaningful digits
Date: 2006-11-14 05:58:56
Message-ID: 20416.1163483936@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"SunWuKung" <Balazs(dot)Klein(at)t-online(dot)hu> writes:
> Yep, I think this is it:
> select trim(trailing '0.' from 1.020)

Um, I think not:

regression=# select trim(trailing '0.' from 1000.000);
rtrim
-------
1
(1 row)

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message A. Kretschmer 2006-11-14 06:30:23 Re: chop off non-meaningful digits
Previous Message Scott Ribe 2006-11-14 00:46:55 Re: Table and Field namestyle best practices?