7 decimal digits precision for real

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: sprakash24oct(at)gmail(dot)com
Subject: 7 decimal digits precision for real
Date: 2020-07-30 22:31:49
Message-ID: 159614830974.681.17017141356953934189@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/12/datatype-numeric.html
Description:

When I try to run
`insert into employees (r_id) values (3.919192199);`
where r_id is of type real, I see it stores as 3.9191923 and not 6.
Am I understanding anything wrong ? isn't the range specified is 6 digits
precision?

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Tatsuo Ishii 2020-07-30 23:54:20 Re: High Availability, Load Balancing, and Replication Feature Matrix
Previous Message Tom Lane 2020-07-30 18:00:23 Re: Table Partitioning