f64
value off the stack, negates the value, and then
pushes the result back on to the stack. This turns a positive value into a negative one, and
turns a negative value into a positive one.
f64.neg
f64 | The value to negate. |
f64 | The negated value. |
;; Push the f64 value 3.142 onto the stack f64.const 3.142 ;; Pop the f64 value off the stack, negate the value and ;; push the result back onto the stack f64.neg ;; The stack contains an f64 value of -3.142
;; Push the f64 value -2.718 onto the stack f64.const -2.718 ;; Pop the f64 value off the stack, negate the value and ;; push the result back onto the stack f64.neg ;; The stack contains an f64 value of 2.718