public static boolean isUUID(String str) {
        if (str == null) {
            return false;
        }

        if (str.length() == 32) {
            for (int i = 0; i < 32; i++) {
                char ch = str.charAt(i);
                boolean valid = (ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'F') || (ch >= 'a' && ch <= 'f');
                if (!valid) {
                    return false;
                }
            }
            return true;
        }

        if (str.length() == 36) {
            for (int i = 0; i < 36; i++) {
                char ch = str.charAt(i);

                if (i == 8 || i == 13 || i == 18 || i == 23) {
                    if (ch != '-') {
                        return false;
                    }
                    continue;
                }

                boolean valid = (ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'F') || (ch >= 'a' && ch <= 'f');
                if (!valid) {
                    return false;
                }
            }
            return true;
        }
        return false;
    }
decimal is integer, check has non-zero small

@param decimal
@return
core/src/main/java/com/alibaba/fastjson2/util/TypeUtils.java