API reference
python:irx:irx.analysis.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
Declared as: python:irx:irx.analysis.numeric_policy.NumericConversion
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
-
source_type — Type: astx.DataType
-
target_type — Type: astx.DataType
-
kind — Type: NumericConversionKind
-
implicit — Type: bool
-
requires_range_check — Type: bool
Methods
- __init__ —