/** * Converts a decimal to a string with padding. * * @param d the decimal to convert * @param padding the number of zeros to add to end of the formatted decimal * @return the formatted String representing the decimal. */ public static String convert(BigDecimal d, int padding) { return DoubleConverter.getDecimalFormat(padding).format(d); }
/** * Converts a double to a string with padding. * * @param d the double to convert * @param padding the number of zeros to add to end of the formatted double * @return the formatted String representing the double. */ public static String convert(double d, int padding) { return getDecimalFormat(padding).format(d); }
/** * Converts a double to a string with padding. * * @param d the double to convert * @param padding the number of zeros to add to end of the formatted double * @return the formatted String representing the double. */ public static String convert(double d, int padding) { return getDecimalFormat(padding).format(d); }
/** * Converts a decimal to a string with padding. * * @param d the decimal to convert * @param padding the number of zeros to add to end of the formatted decimal * @return the formatted String representing the decimal. */ public static String convert(BigDecimal d, int padding) { return DoubleConverter.getDecimalFormat(padding).format(d); }
/** * Converts a double to a string with padding. * * @param d the double to convert * @param padding the number of zeros to add to end of the formatted double * @return the formatted String representing the double. */ public static String convert(double d, int padding) { return getDecimalFormat(padding).format(d); }
/** * Converts a decimal to a string with padding. * * @param d the decimal to convert * @param padding the number of zeros to add to end of the formatted decimal * @return the formatted String representing the decimal. */ public static String convert(BigDecimal d, int padding) { return DoubleConverter.getDecimalFormat(padding).format(d); }