How many digits are printed with double precision? - Mailing list pgsql-novice

From Mathieu Dubois
Subject How many digits are printed with double precision?
Date
Msg-id 4D8A5CC7.7020407@limsi.fr
Whole thread Raw
Responses Re: How many digits are printed with double precision?  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: "Rob Richardson"
Date:
Subject: Re: Re: Not to start a flame war but what does Oracle have that Postgresql does not?
Next
From: Tom Lane
Date:
Subject: Re: How many digits are printed with double precision?