def getIntegerFromCharacterLengthLineOffset(character, offset, splitLine, stepLength):
 lineFromCharacter = gcodec.getStringFromCharacterSplitLine(character, splitLine)
 if (lineFromCharacter == None):
  return 0
 floatValue = ((float(lineFromCharacter) + offset) / stepLength)
 return int(round(floatValue))

def getIntegerFromCharacterLengthLineOffset ( character , offset , splitLine , stepLength ) : lineFromCharacter = gcodec . getStringFromCharacterSplitLine ( character , splitLine ) if ( lineFromCharacter == None ) : return 0 floatValue = ( ( float ( lineFromCharacter ) + offset ) / stepLength ) return int ( round ( floatValue ) )
get the integer after the first occurence of the character in the split line .