def eval_unicode(s):
    u = sum(unicodedata.numeric(i) for i in s if unicodedata.category(i) ==
        'No')
n = float(''.join(i for i in s if i.isdigit() or i == '.') or 0)
return n + u
How do I calculate the numeric value of a string with unicode components in python?