Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Misrepresentation of table values after rounding #166
Could you check the type of the column? If the type is float8 (double precision), Postico shows 16 significant digits, but doubles only have 15.9 digits of precision, so sometimes odd things like that happen. If you need precise decimal numbers, I recommend working with the NUMERIC type.
Consider the following query:
select 0.07::float4, 0.07::float8, 0.07::numeric
Postico could just round to 15 digits when displaying numbers, then that wouldn't happen. Since a bunch of people have complained about this, I'll see what I can do.
I fixed this in the latest build. Postico now always uses the shortest possible decimal representation that has the same underlying floating point representation.
You can download the build here: