i32.trunc_sat_f64_s
i32.trunc_sat_f64_s conversion/reinterpretation instruction.
core0xFC 0x02
Syntax
i32.trunc_sat_f64_s
Stack Effect
[f64] -> [i32]Opcode
- Hex
0xFC 0x02- Decimal
252 2- Bytes
[0xfc, 0x02]- Prefix
0xFCbulk-memory / saturating conversions / table extension space- Encoding
0xFC 0x02- Category
- numeric
- Proposal
- non-trapping-fp-to-int
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_sat_f64_s example
)