cdm/src/main/java/ucar/unidata/util/Format.java
public static String d(double d, int min_sigfig, int width) {
    String s = Format.d(d, min_sigfig);
    return pad(s, width, true);
  }
public static String d(double d, int min_sigfig, int width) {
    String s = Format.d(d, min_sigfig);
    return pad(s, width, true);
  }
public static String d ( double d , int min_sigfig , int width ) { String s = Format . d ( d , min_sigfig ) ; return pad ( s , width , true ) ; }
Double value formatting with minimum number of significant figures in a specified width.
This will try to do a reasonable job of getting
a representation that has min_sigfig significant figures in the specified width.
Right now, all it does is call d( double d, int min_sigfig) and left pad out to width chars.

@param d          the number to format.
@param min_sigfig minimum number of significant figures
@param width      width of the result
@return string representation, right justified in field of specified width
Double value formatting with minimum number of significant figures in a specified width . This will try to do a reasonable job of getting a representation that has min_sigfig significant figures in the specified width . Right now all it does is call d ( double d int min_sigfig ) and left pad out to width chars .