original_docstring: Just get the version number as a float.
  
      >>> version2float('Version v17.3.2.0')
      17.320
      >>> version2float('21.60-53-93285')
      21.605393285
      
docstring: Just get the version number as a float.
docstring_tokens: Just get the version number as a float .
code: def version2float(v):
      """Just get the version number as a float.
  
      >>> version2float('Version v17.3.2.0')
      17.320
      >>> version2float('21.60-53-93285')
      21.605393285
      """
      v = re.sub(r'[^0-9\.]', '', v)
      v = v.split('.')
      if len(v) > 1:
          return float('{}.{}'.format(v[0], ''.join(v[1:])))
      return float(''.join(v))
code_tokens: def version2float ( v ) : v = re . sub ( r'[^0-9\.]' , '' , v ) v = v . split ( '.' ) if len ( v ) > 1 : return float ( '{}.{}' . format ( v [ 0 ] , '' . join ( v [ 1 : ] ) ) ) return float ( '' . join ( v ) )
short_docstring: Just get the version number as a float.
short_docstring_tokens: Just get the version number as a float .
comment: """Just get the version number as a float.
  
      >>> version2float('Version v17.3.2.0')
      17.320
      >>> version2float('21.60-53-93285')
      21.605393285
      """