### Question:
CsvLoaderUtils { public static String formattedDouble(double value) { String str = BigDecimal.valueOf(value).toPlainString(); return str.endsWith(".0") ? str.substring(0, str.length() - 2) : str; } private  CsvLoaderUtils(); static Pair<YearMonth, EtdVariant> parseEtdVariant(CsvRow row, EtdType type); static EtdSettlementType parseEtdSettlementType(String str); static EtdOptionType parseEtdOptionType(String str); static DoublesPair parseQuantity(CsvRow row); static String formattedPercentage(double value); static String formattedDouble(double value); static final String SECURITY_ID_SCHEME_FIELD; static final String SECURITY_ID_FIELD; static final String EXCHANGE_FIELD; static final String CONTRACT_CODE_FIELD; static final String LONG_QUANTITY_FIELD; static final String SHORT_QUANTITY_FIELD; static final String QUANTITY_FIELD; static final String PRICE_FIELD; static final String EXPIRY_FIELD; static final String EXPIRY_WEEK_FIELD; static final String EXPIRY_DAY_FIELD; static final String SETTLEMENT_TYPE_FIELD; static final String EXERCISE_STYLE_FIELD; static final String VERSION_FIELD; static final String PUT_CALL_FIELD; static final String EXERCISE_PRICE_FIELD; static final String UNDERLYING_EXPIRY_FIELD; static final String CURRENCY; static final String TICK_SIZE; static final String TICK_VALUE; static final String CONTRACT_SIZE; static final int DEFAULT_OPTION_VERSION_NUMBER; static final ImmutableMap<String, EtdSettlementType> SETTLEMENT_BY_CODE; }### Answer:
@Test public void test_formattedDouble() { assertThat(CsvLoaderUtils.formattedDouble(123.45d)).isEqualTo("123.45"); assertThat(CsvLoaderUtils.formattedDouble(0.7d)).isEqualTo("0.7"); assertThat(CsvLoaderUtils.formattedDouble(0.08d)).isEqualTo("0.08"); assertThat(CsvLoaderUtils.formattedDouble(789d)).isEqualTo("789"); }