@Override public StringBuffer format(double value,StringBuffer buffer,FieldPosition field){
  for (int i=choiceLimits.length - 1; i >= 0; i--) {
    if (choiceLimits[i] <= value) {
      return buffer.append(choiceFormats[i]);
    }
  }
  return choiceFormats.length == 0 ? buffer : buffer.append(choiceFormats[0]);
}

@ Override public StringBuffer format ( double value , StringBuffer buffer , FieldPosition field ) { for ( int i = choiceLimits . length - 1 ; i >= 0 ; i -- ) { if ( choiceLimits [ i ] <= value ) { return buffer . append ( choiceFormats [ i ] ) ; } } return choiceFormats . length == 0 ? buffer : buffer . append ( choiceFormats [ 0 ] ) ; }
appends the string associated with the range in which the specified double value fits to the specified string buffer .
