f32.const
Push a f32 value onto the stack.

Syntax

f32.const value

Parameters

value
An f32 literal value. Must be written as a decimal number.

Stack In

NONE

Stack Out

f32 The parameter value.

Example

;; Push the f32 value 3.142 onto the stack
f32.const 3.142

;; Push the f32 value 2.718 onto the stack
f32.const 2.718

;; Pop the two f32 values off the stack, add them together and
;; push the result back onto the stack
f32.add

;; The stack contains an f32 value of 5.86