f32.convert_i32_s
Pops an i32 value off the stack, converts it into a f32 value, and then pushes it back on to the stack. This looks at the i32 value as a signed integer (can be negative).

Syntax

f32.convert_i32_s

Stack In

i32 The value to be converted.

Stack Out

f32 The f32 version of the i32 value.

Examples

;; Convert i32 42 into a f32 value
i32.const 42
f32.convert_i32_s

;; The stack contains a f32 value of 42.0
;; Convert i32 0xFFFFFF6C (-148) into a f32 value
i32.const 0xFFFFFF6C
f32.convert_i32_s

;; The stack contains a f32 value of -148.0