/tags/v1.11-okuzgozu/src/org/tela_botanica/client/util/UtilNombre.java |
---|
New file |
0,0 → 1,23 |
package org.tela_botanica.client.util; |
import com.google.gwt.i18n.client.NumberFormat; |
public class UtilNombre { |
public static String formaterEnEntier(double nombre) { |
NumberFormat formatNbreEntier = NumberFormat.getFormat("#"); |
return formatNbreEntier.format(nombre); |
} |
public static boolean estUnNombre(String str) { |
try |
{ |
double d = Double.parseDouble(str); |
} |
catch(NumberFormatException nfe) |
{ |
return false; |
} |
return true; |
} |
} |