reformatting floats ?

Поиск
Список
Период
Сортировка
От Gauthier, Dave
Тема reformatting floats ?
Дата
Msg-id D7FF158337303A419CF4A183F48302D6037049E7@hdsmsx411.amr.corp.intel.com
обсуждение исходный текст
Ответы Re: reformatting floats ?  (Martijn van Oosterhout <kleptog@svana.org>)
Re: reformatting floats ?  (Andreas Kretschmer <akretschmer@spamfence.net>)
Список pgsql-general

Hi:

 

if...  

create table coords (id int, x float, y float);

then... 

insert into coords (id,x,y) values (1,1.000,2.001)

and then...

            select * from coords

i get...

            1,1,2.001

i want...

            1.1.000,2.001

while retaining the numeric nature of the x,y data (for math ops in other operations).

 

How can I reformat the float output (sort of like using “%5.3f” in good-ole C)

 

Thanks !

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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: record-based log shipping
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: reformatting floats ?