f64.ge
Pops two f64 values off the stack, checks if the first value is greater than or equal to the second, and then pushes the result back on to the stack.
if ($first >= $second) {...}

Syntax

f64.ge

Stack In

f64 The first value to check with.
f64 The second value to check against.

Stack Out

i32 The result of the comparsion. If the first value is greater than or equal to the second value then the result will be 1. Otherwise the result will be 0.

Examples

;; 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, check if the first is greater
;; than or equal to the second and push the result back onto the stack
f64.ge

;; The stack contains an i32 value of 1 (3.142 >= 2.718 = is greater or equal)
;; Push the f64 value 3.142 onto the stack
f64.const 3.142

;; Push the f64 value 3.142 onto the stack
f64.const 3.142

;; Pop the two f64 values off the stack, check if the first is greater
;; than or equal to the second and push the result back onto the stack
f64.ge

;; The stack contains an i32 value of 1 (3.142 >= 3.142 = is greater or equal)
;; Push the f64 value 2.718 onto the stack
f64.const 2.718

;; Push the f64 value 3.142 onto the stack
f64.const 3.142

;; Pop the two f64 values off the stack, check if the first is greater
;; than or equal to the second and push the result back onto the stack
f64.ge

;; The stack contains an i32 value of 0 (2.718 >= 3.142 = is not greater or equal)