def getFloatFromValue(value):
 try:
  return float(value)
 except:
  pass
 return None

def getFloatFromValue ( value ) : try : return float ( value ) except : pass return None
get the value as a float .