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

SWT tandem scrollbars in composite

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 03:47:08
问题 I'm trying to add a button above the create two ScrolledComposites that scroll in tandem snippet from swt snippets the problem is that if I put the example code in a different Composite than the shell the example not working import org.eclipse.swt.*; import org.eclipse.swt.custom.*; import org.eclipse.swt.events.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class tandemWithButton { public static void main(String[] args) { Display display = new Display(); Shell