f64.convert_i64_u
Pops an i64 value off the stack, converts it into a f64 value, and then pushes it back on to the stack. This looks at the value as an unsigned integer (positive value only).

Syntax

f64.convert_i64_u

Stack In

i64 The value to be converted.

Stack Out

f64 The f64 version of the i64 value.

Examples

;; Convert i64 42 into a f64 value
i64.const 42
f64.convert_i64_u

;; The stack contains a f64 value of 42.0
;; Convert i64 0xFFFFFFFFFFFFFF6C (18446744073709551468) into a f64 value
i64.const 0xFFFFFFFFFFFFFF6C
f64.convert_i64_u

;; The stack contains a f64 value of 18446744073709551616.0
;; The value will not be exactly the same because of precision