Extract the major version number (the digits before the dot), cast to integer and compare against 7.