static bool isDecimal(String string) { if (noString(string)) { return false; } return double.tryParse(string) != null; }