Re: chop off non-meaningful digits

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: chop off non-meaningful digits
Дата
Msg-id 20416.1163483936@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: chop off non-meaningful digits  ("SunWuKung" <Balazs.Klein@t-online.hu>)
Ответы Re: chop off non-meaningful digits  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-general
"SunWuKung" <Balazs.Klein@t-online.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

В списке pgsql-general по дате отправления:

Предыдущее
От: Igor Shevchenko
Дата:
Сообщение: can't start postgresql
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: chop off non-meaningful digits