Module coercion

Module coercion 

Source

Functions§

sanitize_numeric
Numeric sanitization: NaN/Inf → #NUM!
to_datetime_serial
Coerce to Excel serial (date/time/duration) or error.
to_logical
Logical coercion.
to_number_lenient
Lenient numeric coercion.
to_number_lenient_with_locale
Context-aware lenient numeric coercion using locale.
to_number_strict
Centralized coercion and error policy utilities (Milestone 7). These functions implement invariant, Excel-compatible coercions and numeric sanitization. They should be used by the interpreter, builtins, and evaluation pipelines (map/fold/window) instead of ad-hoc parsing. Strict numeric coercion.
to_text_invariant
Invariant textification for comparisons/concatenation.