How many digits are printed with double precision?

Поиск
Список
Период
Сортировка
От Mathieu Dubois
Тема How many digits are printed with double precision?
Дата
Msg-id 4D8A5CC7.7020407@limsi.fr
обсуждение исходный текст
Ответы Re: How many digits are printed with double precision?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
Hello,

I'm using postgreSQL and python (PyGreSQL) and face a strange problem.

I have a double precision column in my DB (it's the time at which an image was taken expressed in second from UNIX epoch). When I query the value (SELECT time...) I get only 5 digits after the dot (while I suppose there are 6 digits). I have the same result when using pgadmin. The results looks like the rounding of the desired time (which I know by the filename).

Is it because postgreSQL only returns a fixed amount of digits or is the mistake is coming from my INSERTion (something like a semiconscious rounding).

Thanks in advance,
Mathieu

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

Предыдущее
От: "Rob Richardson"
Дата:
Сообщение: Re: Re: Not to start a flame war but what does Oracle have that Postgresql does not?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: How many digits are printed with double precision?