f32
values off the stack, divides the first by the second, and then
pushes the result back on to the stack. Make sure you push the values onto the stack in the
right order otherwise the result will be wrong.
f32.div
f32 | The first value to be divided. |
f32 | The second value to divide by. |
f32 | The result of dividing the first value by the second one. |
;; Push the f32 values onto the stack f32.const 12.34 f32.const 3.142 ;; Divide 12.34 by 3.142 f32.div ;; The stack contains an f32 value of 3.927