Skip to main content

Module d1_parse

Module d1_parse 

Source
Expand description

d1’s strict readings of written values (parsing.py): a read number’s magnitude (currency and percent set apart, scale words applied, the decimal mark settled from evidence) and a read date as ISO — no arithmetic, conversion or invented date components.

Functions§

parse_date
ISO value and an unresolved-ambiguity flag (parse_date).
parse_number
The written magnitude (percent points included): currency and percent set apart, a scale word applied; null when the writing does not settle one value.
written_unit
Only an explicitly written percent or currency marker.