Skip to main content

compare_arithmetic_values

Function compare_arithmetic_values 

Source
pub fn compare_arithmetic_values(
    left: &ArithmeticValue,
    op: CompOp,
    right: &ArithmeticValue,
) -> Result<bool>
Expand description

Compare two scalar values using the execution runtime’s comparison semantics.

Equal-width floating-point operands retain their width. When exactly one operand is floating point, or the widths differ, both numeric values are converted to f64, matching runtime predicate evaluation. Float equality remains IEEE 754; ordered comparisons use IEEE total ordering.