Subversion Repositories eFlore/Applications.coel

Rev

Rev 1896 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
948 jpm 1
package org.tela_botanica.client.util;
2
 
3
import com.google.gwt.i18n.client.NumberFormat;
4
 
5
public class UtilNombre {
6
 
7
	public static String formaterEnEntier(double nombre) {
8
		NumberFormat formatNbreEntier = NumberFormat.getFormat("#");
9
		return formatNbreEntier.format(nombre);
1896 aurelien 10
	}
11
 
12
	public static boolean estUnNombre(String str) {
13
		try
14
		{
15
		  double d = Double.parseDouble(str);
16
		}
17
		catch(NumberFormatException nfe)
18
		{
19
			return false;
20
		}
21
		return true;
22
	}
948 jpm 23
}