API reference

python:irx:irx.analysis.numeric_policy.NumericConversion

class NumericConversion

NumericConversion(source_type: astx.DataType, target_type: astx.DataType, kind: NumericConversionKind, implicit: bool, requires_range_check: bool)

Source: packages/irx/src/irx/analysis/numeric_policy.py:56

Classification of a numeric conversion under the checked numeric policy.

A required range check must precede publication of the converted value. Explicit floating conversions may round or truncate even when a range check succeeds; implicit conversions may not lose source-domain values.

Attributes

Methods

Attributes

Search documentation

Type to search.