
30/07/2003, 22:10
|
| | Fecha de Ingreso: febrero-2003
Mensajes: 165
Antigüedad: 22 años, 1 mes 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;
} |