package routines;

public class CustomNumeric {

    /**
     * isDecimal: return true si la valeur est un décimal sinon false.
     * 
     * 
     * {talendTypes} String
     * 
     * {Category} CustomNumeric
     * 
     * {param} string("3.2") input: La chaine à tester.
     * 
     * {example} isDecimal("3.2") # true.
     */
	 public static boolean isDecimal(String val) {
	    	if(val != null ) {
	    		return val.matches("((-|\\+)?[0-9]+(\\.[0-9]+)?)+");
	    	}
	    	return false;
	    }
}
