cadrumo.core.decimal.fixed_width module

Strict numeric coercion for fixed-width tax-return wire fields.

coerce_fixed_width_decimal(value)[source]

Return a finite exact decimal without guessing or lossy float conversion.

Fixed-width filing values are already typed application values or canonical machine-authored strings. Whitespace, exponent notation, leading plus, booleans, and binary floats are therefore refusals rather than alternate spellings.

Return type:

Decimal

Parameters:

value (object)