i64.trunc_f64_s
i64.trunc_f64_s conversion/reinterpretation instruction.
core0xB0
Syntax
i64.trunc_f64_s
Stack Effect
[f64] -> [i64]Opcode
- Hex
0xB0- Decimal
176- Bytes
[0xb0]- Encoding
0xB0- 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
;; i64.trunc_f64_s example
)