f32.trunc
f32 unary trunc operation.
core0x8F
Syntax
f32.trunc
Stack Effect
[f32] -> [f32]Opcode
- Hex
0x8F- Decimal
143- Bytes
[0x8f]- Encoding
0x8F- 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
;; f32.trunc example
)