PyDocs

Nav

Text Processing Services

numeric

unicodedata

function
  • numeric(chr, default=None, /)
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.
1 Example
>>> unicodedata.numeric('½')
0.5
from the Python docs
See Also
No see-alsos for unicodedata/numeric
0 Notes
No notes for numeric