code: public static boolean isFloatingPointString(Object pObject) {
          if (pObject instanceof String) {
              String str = (String) pObject;
              int len = str.length();
              for (int i = 0; i < len; i++) {
                  char ch = str.charAt(i);
                  if (ch == '.' ||
                          ch == 'e' ||
                          ch == 'E') {
                      return true;
                  }
              }
              return false;
          } else {
              return false;
          }
      }
docs: Returns true if the given string might contain a floating point
  number - i.e., it contains ".", "e", or "E"