f32.const
Push an f32 constant.
core0x43
Syntax
f32.const
Stack Effect
[] -> [f32]Opcode
- Hex
0x43- Decimal
67- Bytes
[0x43]- Encoding
0x43 <value:f32-le>- Immediates
value:f32-le— 4 little-endian IEEE-754 bytes
- 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.const example
)