f64
values off the stack, subtracts the second value from the first, and then
pushes the result back on to the stack. Make sure you push the values onto the stack in the correct
order otherwise you will be subtracting the wrong way round.
f64.sub
f64 | The first value to be subtract from. |
f64 | The second value to subtract by. |
f64 | The result of subtracting the second value from the first. |
;; 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, subtract the second value ;; from the first and push the result back onto the stack f64.sub ;; The stack contains an f64 value of 0.424