@Test public void test_doubleFormat() { System.out.println(new BigDecimal("9801523474.1234567890987654321") .toPlainString()); System.out.println("double: " + 9801523474.399621d); System.out.println("bigdecimal: " + new BigDecimal(9801523474.399621d).toPlainString()); System.out.println("bigdecimal: " + new BigDecimal(String.valueOf(9801523474.399621d)).toPlainString()); System.out.println(new DoubleColumn(9801523474.399621d).asString()); Assert.assertTrue("9801523474.39962".equals(new DoubleColumn( 9801523474.399621d).asString())); Assert.assertTrue(!new DoubleColumn(Double.MAX_VALUE).asString() .contains("E")); Assert.assertTrue(!new DoubleColumn(Float.MAX_VALUE).asString() .contains("E")); }
@Override public String asString() { if (null == this.getRawData()) { return null; } return (String) this.getRawData(); }
DoubleColumn extends Column { @Override public String asString() { if (null == this.getRawData()) { return null; } return (String) this.getRawData(); } }
DoubleColumn extends Column { @Override public String asString() { if (null == this.getRawData()) { return null; } return (String) this.getRawData(); } DoubleColumn(final String data);  DoubleColumn(Long data);  DoubleColumn(Integer data);  DoubleColumn(final Double data);  DoubleColumn(final Float data);  DoubleColumn(final BigDecimal data);  DoubleColumn(final BigInteger data);  DoubleColumn(); private  DoubleColumn(final String data, int byteSize); }
DoubleColumn extends Column { @Override public String asString() { if (null == this.getRawData()) { return null; } return (String) this.getRawData(); } DoubleColumn(final String data);  DoubleColumn(Long data);  DoubleColumn(Integer data);  DoubleColumn(final Double data);  DoubleColumn(final Float data);  DoubleColumn(final BigDecimal data);  DoubleColumn(final BigInteger data);  DoubleColumn(); private  DoubleColumn(final String data, int byteSize); @Override BigDecimal asBigDecimal(); @Override Double asDouble(); @Override Long asLong(); @Override BigInteger asBigInteger(); @Override String asString(); @Override Boolean asBoolean(); @Override Date asDate(); @Override byte[] asBytes(); }
DoubleColumn extends Column { @Override public String asString() { if (null == this.getRawData()) { return null; } return (String) this.getRawData(); } DoubleColumn(final String data);  DoubleColumn(Long data);  DoubleColumn(Integer data);  DoubleColumn(final Double data);  DoubleColumn(final Float data);  DoubleColumn(final BigDecimal data);  DoubleColumn(final BigInteger data);  DoubleColumn(); private  DoubleColumn(final String data, int byteSize); @Override BigDecimal asBigDecimal(); @Override Double asDouble(); @Override Long asLong(); @Override BigInteger asBigInteger(); @Override String asString(); @Override Boolean asBoolean(); @Override Date asDate(); @Override byte[] asBytes();  }