Forum Discussion
Strange Data Type Conversion from Number to Text
- 6 years ago
Hi xieyifan2008 ,
I got response from PG:
"This is by design. Numbers in Excel use floating point, so certain values can't be represented with full precision.
We apply the same display rounding that Excel uses when rendering the preview tables that contain numbers. But if you click on a cell you can see the full (non-rounded) value.
If you convert the column to Text (as this customer did), you get the full non-rounded value."
Hi xieyifan2008 ,
I got response from PG:
"This is by design. Numbers in Excel use floating point, so certain values can't be represented with full precision.
We apply the same display rounding that Excel uses when rendering the preview tables that contain numbers. But if you click on a cell you can see the full (non-rounded) value.
If you convert the column to Text (as this customer did), you get the full non-rounded value."
Thanks for your feedback.
It's bacause of the precision of binary. I understand now.