Skip to content

scalar.roundf

← scalar dialect

Round to nearest, ties away from zero.

Operation contract

Property Value
Semantic phase executable
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.roundf %input : f32