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

;; Translate f64 1234.567 into an i64 value
f64.const 1234.567
i64.reinterpret_f64

;; The stack contains an i64 value of the binary f64 value for 1234.567

;; Translate it back from the i64 binary into a f64 value
f64.reinterpret_i64

;; The stack contains a f64 value of 1234.567