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:60
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 of the source value.; Type: astx.DataType
-
target_type — Destination type for the conversion.; Type: astx.DataType
-
kind — Kind of value or operation.; Type: NumericConversionKind
-
implicit — Whether to use implicit.; Type: bool
-
requires_range_check — Whether to use requires range check.; Type: bool
Methods
- __init__ —