def getIntFromFloatString(value):
 floatString = str(value).strip()
 if (floatString == ''):
  return None
 dotIndex = floatString.find('.')
 if (dotIndex < 0):
  return int(value)
 return int(round(float(floatString)))

def getIntFromFloatString ( value ) : floatString = str ( value ) . strip ( ) if ( floatString == '' ) : return None dotIndex = floatString . find ( '.' ) if ( dotIndex < 0 ) : return int ( value ) return int ( round ( float ( floatString ) ) )
get the int from the string .