Converts a Unicode character into its equivalent numeric value. Returns the numeric value assigned to the character chr as float. If no such value is defined, default is returned, or, if not given, ValueError is raised.
>>> unicodedata.numeric('½') 0.5
unicodedata/numeric
numeric