public static String fmt(double v){
  return v == Double.MAX_VALUE ? null : FMT2.format(v);
}

public static String fmt ( double v ) { return v == Double . MAX_VALUE ? null : FMT2 . format ( v ) ; }
format with two decimals .
