Open acautin opened 5 years ago
Question to odpi, ref: https://github.com/oracle/odpi/issues/100#issuecomment-518266931
@acautin Just a small remark:
Assuming that tools like TOAD are the norm, we have to be careful:
2.700000000000005
1 row selected.
whereas
2.70000000
1 row selected.
The inherent precision is conserved but the default rendering in TOAD (probably Oracle) does some default rounding to 8 digits.
2.70010002
1 row selected.
@acautin is https://github.com/oracle/odpi/issues/100#issuecomment-518328988 good enough to close this issue?
@c-bik haven't tried it yet, as soon as I try it out (after finishing with edits) will confirm and close.
Using
data_get
after executing the following query results in loss of precision:SELECT 2.700000000000005 FROM dual
Is returned as2.70000000000001
I am not really convinced we are properly using the full precision of erlang as this is getting rounded even before the erlang precision is a problem.
Also maybe related: https://github.com/oracle/odpi/issues/4