writeNumber static method

String writeNumber(
  1. double d,
  2. NumberFormat formatter
)

Converts a double to a String, not in scientific notation.

@param d the double to convert @return the double as a String, not in scientific notation

Implementation

static String writeNumber(double d, NumberFormat formatter) {
  return formatter.format(d);
}