public static String formatBigDecimal(BigDecimal v,Locale locale){
  NumberFormat numberFormat=NumberFormat.getInstance(locale);
  int scale=2;
  if (v.intValue() >= 100) {
    scale=1;
  }
  return numberFormat.format(v.setScale(scale,RoundingMode.UP));
}

public static String formatBigDecimal ( BigDecimal v , Locale locale ) { NumberFormat numberFormat = NumberFormat . getInstance ( locale ) ; int scale = 2 ; if ( v . intValue ( ) >= 100 ) { scale = 1 ; } return numberFormat . format ( v . setScale ( scale , RoundingMode . UP ) ) ; }
formats decimal number for specified locale
