Skip to content

scalar.fptoui

scalar dialect

Floating-point to unsigned integer (rounds toward zero).

Operation contract

Property Value
Semantic phase executable
Traits Pure

Signature

Kind Name Type Cardinality Description
Operand input float required
Result result integer required

Examples

%result = scalar.fptoui %input : f32 to i32