f64
values off the stack, works out which one is the largest, and then
pushes it back on to the stack.
f64.max
f64 | The first value to check. |
f64 | The second value to check. |
f64 | The largest of the first or second values. |
;; Push the f64 value 3.142 onto the stack f64.const 3.142 ;; Push the f64 value 2.718 onto the stack f64.const 2.718 ;; Pop the two f64 values off the stack, workout the largest ;; and push it back onto the stack f64.max ;; The stack contains an f64 value of 3.142
;; Push the f64 value -3.142 onto the stack f64.const -3.142 ;; Push the f64 value -2.718 onto the stack f64.const -2.718 ;; Pop the two f64 values off the stack, workout the largest ;; and push it back onto the stack f64.max ;; The stack contains an f64 value of -2.718