sqlmx

HP Nonstop Tandem T4SQLMX driver double precision issue

余生长醉 提交于 2021-01-29 13:30:20
问题 I use T4SQLMX type 4 jdbc driver to read a double precision field from a SQL/MX table. The Actual value is 29963.26 , however, the value read using the jdbc driver seems to be 29963.260000000002 . This seems to be an issue even if I read it as resultset.getString() or resultset.getBigDecimal() because the driver always returns 29963.260000000002. Similarly, value 99.76 is returned as 99.759999999999 . We use CAIL to view the actual value 99.76 from the SQL/MX table, and SQL-Squirrel client