private static String formatSampleRate(int rate){
  return MHZ_FORMATTER.format((double)rate / 1E6d);
}

private static String formatSampleRate ( int rate ) { return MHZ_FORMATTER . format ( ( double ) rate / 1E6d ) ; }
formats the rate in hertz for display as megahertz
