f64
values off the stack, adds them together, and then
pushes the result back on to the stack.
f64.add
f64 | The first value to be added. |
f64 | The second value to be added. |
f64 | The result of adding the first and second values together. |
;; 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, add them together and ;; push the result back onto the stack f64.add ;; The stack contains an f64 value of 5.86
;; Push the f64 value -12.34 onto the stack f64.const -12.34 ;; Push the f64 value 19.44 onto the stack f64.const 19.44 ;; Pop the two f64 values off the stack, add them together and ;; push the result back onto the stack f64.add ;; The stack contains an f64 value of -12.34 + 19.44 = 7.1