Skip to content

scalar.roundevenf

scalar dialect

Round to nearest, ties to even (IEEE 754 default rounding).

Operation contract

Property Value
Semantic phase
Traits Pure, Idempotent

Signature

Kind Name Type Cardinality Description
Operand input float required
Result result float required
Attribute fastmath flags FastMathFlags optional

Verification constraints

  • SameType(input, result)

Examples

%result = scalar.roundevenf %input : f32