public static boolean esDouble(String string) {
		int cantp=0;
		int pos=0;
		while (pos<string.length()) {
			if(string.charAt(pos)=='.')
				cantp++;
			pos++;
		}
		if(cantp<=1)
			return true;
		else
			return false;
	}