f32
values off the stack, works out which one is the largest, and then
pushes it back on to the stack.
f32.max
f32 | The first value to check. |
f32 | The second value to check. |
f32 | The largest of the first or second values. |
;; 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, workout the largest ;; and push it back onto the stack f32.max ;; The stack contains an f32 value of 3.142
;; 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, workout the largest ;; and push it back onto the stack f32.max ;; The stack contains an f32 value of -2.718