a1 := pop();
a2 := pop();
if(is_int(a1) && is_int(a2)) {
i1 := (int)a1;
i2 := (int)a2;
r := i2 > i1; // compare integers
}
else if(is_numeric(a1) && is_numeric(a2)) {
f1 := (float)a1;
f2 := (float)a2;
r := f2 > f1; // compare floating points
}
else {
s1 := (string)a1;
s2 := (string)a2;
r := s2 > s1; // compare characters, case sensitive
}
push(r);