Displaying more than six digits from a real number

Поиск
Список
Период
Сортировка
От Clodoaldo Pinto
Тема Displaying more than six digits from a real number
Дата
Msg-id 20041201232528.79113.qmail@web40913.mail.yahoo.com
обсуждение исходный текст
Ответы Re: Displaying more than six digits from a real number
Re: Displaying more than six digits from a real number
Список pgsql-general
The 7.4.2 manual says the precision of a real number is 6 decimal digits.

Is it possible to force the display of more than six decimal digits of a real
number whithout using to_char() or casting?

Using 7.4.2, FC2.

create table test (f4 float4) without oids;
insert into test values (4877852);
select f4, to_char(f4, 'FM9999999'), cast(f4 as int)
from test;
     f4      | to_char |   f4
-------------+---------+---------
 4.87785e+06 | 4877852 | 4877852

Clodoaldo Pinto






_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Get diagnistic (row_count) 7.3 vs. 7.4 changes
Следующее
От: Eric E
Дата:
Сообщение: Pl/Perl w/ Postgres 8.0 on Windows