def is_computable_float(v):
 tmp = float(v)
 if (not logical_or(isnan(tmp), isinf(tmp))):
  return tmp
 else:
  return False

def is_computable_float ( v ) : tmp = float ( v ) if ( not logical_or ( isnan ( tmp ) , isinf ( tmp ) ) ) : return tmp else : return False
return float if v can be converted to float excluding nan and inf .