How do I check the version of a third-party module? There's a place in the search_krumo module where we want to supply a different JavaScript file path basing on the version of the Devel module being used.

Is there a Drupal function that will check the version for us, or do we need to get the module version with system_get_info(), and then do something with  $module['version'] (which is a string like 7.x-1.5) ourselves?  

If the latter, how should we test if version is greater than 1.6? Should we convert the string to an integer, strip out the x and stuff, and compare integers?
You can use system_get_info('module',  'devel') function and split version to get number after 7.x-
Or goes with this aproach parsing info file here is a solution from stackoverflow get a module version