i32.trunc_f32_s
i32.trunc_f32_s conversion/reinterpretation instruction.
core0xA8
Syntax
i32.trunc_f32_s
Stack Effect
[f32] -> [i32]Opcode
- Hex
0xA8- Decimal
168- Bytes
[0xa8]- Encoding
0xA8- Category
- numeric
Browser Support
Core WebAssembly instruction.
Validation Rules
- Operands and result types must match the instruction signature.
- The instruction must appear in a valid structured control context.
Common Mistakes
- Using the instruction with the wrong operand type.
- Forgetting that WAT validation is stack-typed.
(func $example
;; i32.trunc_f32_s example
)