def getDoubleFromCharacterSplitLine(character, splitLine):
 indexOfCharacter = getIndexOfStartingWithSecond(character, splitLine)
 if (indexOfCharacter < 0):
  return None
 floatString = splitLine[indexOfCharacter][1:]
 try:
  return float(floatString)
 except ValueError:
  return None

def getDoubleFromCharacterSplitLine ( character , splitLine ) : indexOfCharacter = getIndexOfStartingWithSecond ( character , splitLine ) if ( indexOfCharacter < 0 ) : return None floatString = splitLine [ indexOfCharacter ] [ 1 : ] try : return float ( floatString ) except ValueError : return None
get the double value of the string after the first occurence of the character in the split line .