f64.trunc
f64 unary trunc operation.
core0x9D
Syntax
f64.trunc
Stack Effect
[f64] -> [f64]Opcode
- Hex
0x9D- Decimal
157- Bytes
[0x9d]- Encoding
0x9D- 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
;; f64.trunc example
)