f32.reinterpret_i32
Pops an i32 value off the stack, which must be the binary form of a f32 floating point number,
copy the bits into a f32 value, and pushes it onto the stack.
The binary structure of a f32 value is copied as it is, not its value, from an i32 value.
This is like copying the floating point value into memory and then reading it with an integer.
The binary bits are the same, however the numeric value is totally different.
Syntax
f32.reinterpret_i32
Stack In
| i32 |
The value to be transferred. |
Stack Out
| f32 |
The f32 value of the binary copy of the i32 data. |
Example
f32.const 1234.567
i32.reinterpret_f32
f32.reinterpret_i32