i64.reinterpret_f64
Pops a f64 value off the stack, keeping its binary form, pushes it onto the stack as an i64 value.
The binary structure of a f64 value is copied as it is, not its value, into an i64 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
i64.reinterpret_f64
Stack In
| f64 |
The value to be transferred. |
Stack Out
| i64 |
The i64 binary copy of the f64 value. |
Example
f64.const 1234.567
i64.reinterpret_f64
f64.reinterpret_i64