Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/07/2003, 22:10
araujo_guntin
 
Fecha de Ingreso: febrero-2003
Mensajes: 165
Antigüedad: 21 años, 3 meses
Puntos: 0
static public String mask(double value, String pattern) {
Locale loc = new Locale("en", "US");
NumberFormat nf = NumberFormat.getNumberInstance(loc);
DecimalFormat df = (DecimalFormat)nf;
df.applyPattern(pattern);
String output = df.format(value);
return output;
}