/trunk/src/org/tela_botanica/client/util/UtilNombre.java |
---|
7,6 → 7,5 |
public static String formaterEnEntier(double nombre) { |
NumberFormat formatNbreEntier = NumberFormat.getFormat("#"); |
return formatNbreEntier.format(nombre); |
} |
} |
} |
/trunk/src/org/tela_botanica/client/util/UtilString.java |
---|
26,4 → 26,11 |
} |
return new Double(0); |
} |
public static int formaterEnEntier(String nombre) { |
if (!isEmpty(nombre)) { |
return Integer.parseInt(nombre); |
} |
return new Integer(0); |
} |
} |