code: def convert_frequency(value):
      
      value = value.strip()
      suffix = value[-1].lower()
      if suffix in ('k', 'm'):
          value = int(value[:-1])
          if suffix == 'k':
              value *= 1000
          elif suffix == 'm':
              value *= 1000000
          return value
      else:
          return int(value)
docs: ! @brief Applies scale suffix to frequency value string.