DoubleConverter implements ITypeConverter<Double> { @Override public Double convert(String value) { try { return numberFormat.parse(value).doubleValue(); } catch(Exception e) { throw new RuntimeException(e); } } DoubleConverter();  DoubleConverter(NumberFormat numberFormat); @Override Double convert(String value); @Override Type getTargetType(); @Override String toString();  }
@Test public void testConvert() throws Exception { Double val = new DoubleConverter().convert("2.00001"); Assert.assertEquals(2.00001, val, 1e-10); }