2006-09-28 06:58:10 +00:00
|
|
|
BEGIN {
|
2006-09-30 17:03:11 +00:00
|
|
|
OFS="\t\t";
|
2006-09-28 06:58:10 +00:00
|
|
|
|
2006-09-30 17:03:11 +00:00
|
|
|
print "1==1 :", (1 == 1);
|
|
|
|
print "1==0 :", (1 == 0);
|
2006-09-28 06:58:10 +00:00
|
|
|
|
2006-09-30 17:03:11 +00:00
|
|
|
print "1.0==1 :", (1.0 == 1);
|
|
|
|
print "1.1==1 :", (1.1 == 1);
|
|
|
|
|
|
|
|
print "1.0!=1 :", (1.0 != 1);
|
|
|
|
print "1.1!=1 :", (1.1 != 1);
|
2006-09-28 06:58:10 +00:00
|
|
|
|
2006-10-05 14:24:38 +00:00
|
|
|
print "\"abc\" == \"abc\"", ("abc" == "abc");
|
|
|
|
print "\"abc\" != \"abc\"", ("abc" != "abc");
|
2006-09-28 06:58:10 +00:00
|
|
|
|
2006-09-30 17:03:11 +00:00
|
|
|
print "--------------------------";
|
|
|
|
print "a == \"\" :", (a == "");
|
|
|
|
print "a >= \"\" :", (a >= "");
|
|
|
|
print "a <= \"\" :", (a <= "");
|
|
|
|
print "a > \"\" :", (a > "");
|
|
|
|
print "a < \"\" :", (a < "");
|
|
|
|
|
|
|
|
print "--------------------------";
|
|
|
|
print "a == \" \" :", (a == " ");
|
|
|
|
print "a >= \" \" :", (a >= " ");
|
|
|
|
print "a <= \" \" :", (a <= " ");
|
|
|
|
print "a > \" \" :", (a > " ");
|
|
|
|
print "a < \" \" :", (a < " ");
|
|
|
|
|
|
|
|
print "--------------------------";
|
|
|
|
print "\"\" == a :", ("" == a);
|
|
|
|
print "\"\" >= a:", ("" >= a);
|
|
|
|
print "\"\" <= a:", ("" <= a);
|
|
|
|
print "\"\" > a:", ("" > a);
|
|
|
|
print "\"\" < a:", ("" < a);
|
|
|
|
|
|
|
|
print "--------------------------";
|
|
|
|
print "\" \" == a :", (" " == a);
|
|
|
|
print "\" \" >= a:", (" " >= a);
|
|
|
|
print "\" \" <= a:", (" " <= a);
|
|
|
|
print "\" \" > a:", (" " > a);
|
|
|
|
print "\" \" < a:", (" " < a);
|
2006-09-28 13:48:25 +00:00
|
|
|
|
2006-10-04 14:52:12 +00:00
|
|
|
print "--------------------------";
|
|
|
|
print "10 == \"10\"", (10 == "10");
|
|
|
|
print "10 != \"10\"", (10 != "10");
|
|
|
|
print "10 >= \"10\"", (10 >= "10");
|
|
|
|
print "10 <= \"10\"", (10 <= "10");
|
|
|
|
print "10 > \"10\"", (10 > "10");
|
|
|
|
print "10 < \"10\"", (10 < "10");
|
|
|
|
|
|
|
|
print "--------------------------";
|
|
|
|
print "10 == \"11\"", (10 == "11");
|
|
|
|
print "10 != \"11\"", (10 != "11");
|
|
|
|
print "10 >= \"11\"", (10 >= "11");
|
|
|
|
print "10 <= \"11\"", (10 <= "11");
|
|
|
|
print "10 > \"11\"", (10 > "11");
|
|
|
|
print "10 < \"11\"", (10 < "11");
|
|
|
|
|
|
|
|
print "--------------------------";
|
|
|
|
print "11 == \"10\"", (11 == "10");
|
|
|
|
print "11 != \"10\"", (11 != "10");
|
|
|
|
print "11 >= \"10\"", (11 >= "10");
|
|
|
|
print "11 <= \"10\"", (11 <= "10");
|
|
|
|
print "11 > \"10\"", (11 > "10");
|
|
|
|
print "11 < \"10\"", (11 < "10");
|
|
|
|
|
2006-10-05 14:20:57 +00:00
|
|
|
print "--------------------------";
|
|
|
|
print "010 == \"8\"", (010 == "8");
|
|
|
|
print "010 != \"8\"", (010 != "8");
|
|
|
|
print "010 >= \"8\"", (010 >= "8");
|
|
|
|
print "010 <= \"8\"", (010 <= "8");
|
|
|
|
print "010 > \"8\"", (010 > "8");
|
|
|
|
print "010 < \"8\"", (010 < "8");
|
|
|
|
|
2006-10-06 14:35:17 +00:00
|
|
|
print "--------------------------";
|
|
|
|
print "10 == \"10.0\"", (10 == "10.0");
|
|
|
|
print "10 != \"10.0\"", (10 != "10.0");
|
|
|
|
print "10 >= \"10.0\"", (10 >= "10.0");
|
|
|
|
print "10 <= \"10.0\"", (10 <= "10.0");
|
|
|
|
print "10 > \"10.0\"", (10 > "10.0");
|
|
|
|
print "10 < \"10.0\"", (10 < "10.0");
|
|
|
|
|
|
|
|
#OFMT="abc";
|
2006-10-04 14:52:12 +00:00
|
|
|
print "--------------------------";
|
|
|
|
print "10.0 == \"10\"", (10.0 == "10");
|
|
|
|
print "10.0 != \"10\"", (10.0 != "10");
|
|
|
|
print "10.0 >= \"10\"", (10.0 >= "10");
|
|
|
|
print "10.0 <= \"10\"", (10.0 <= "10");
|
|
|
|
print "10.0 > \"10\"", (10.0 > "10");
|
|
|
|
print "10.0 < \"10\"", (10.0 < "10");
|
|
|
|
|
2006-10-09 14:37:42 +00:00
|
|
|
print "--------------------------";
|
|
|
|
print "\"10\" == 10.0", ("10" == 10.0);
|
|
|
|
print "\"10\" != 10.0", ("10" != 10.0);
|
|
|
|
print "\"10\" >= 10.0", ("10" >= 10.0);
|
|
|
|
print "\"10\" <= 10.0", ("10" <= 10.0);
|
|
|
|
print "\"10\" > 10.0", ("10" > 10.0);
|
|
|
|
print "\"10\" < 10.0", ("10" < 10.0);
|
|
|
|
|
|
|
|
print "--------------------------";
|
|
|
|
print "\"10\" == 10.1", ("10" == 10.1);
|
|
|
|
print "\"10\" != 10.1", ("10" != 10.1);
|
|
|
|
print "\"10\" >= 10.1", ("10" >= 10.1);
|
|
|
|
print "\"10\" <= 10.1", ("10" <= 10.1);
|
|
|
|
print "\"10\" > 10.1", ("10" > 10.1);
|
|
|
|
print "\"10\" < 10.1", ("10" < 10.1);
|
|
|
|
|
2006-09-28 14:21:45 +00:00
|
|
|
#a[10] = 2;
|
|
|
|
#print a == 1;
|
|
|
|
|
|
|
|
print (0.234 + 1.01123);
|
2006-10-06 14:35:17 +00:00
|
|
|
print 12345678901234567890E20;
|
|
|
|
print .123;
|
|
|
|
print +.123;
|
|
|
|
print -.123;
|
|
|
|
print .123E-;
|
|
|
|
print +.123E-;
|
|
|
|
print -.123E-;
|
2006-10-10 07:06:42 +00:00
|
|
|
print -.123E- + "123";
|
2006-09-28 06:58:10 +00:00
|
|
|
}
|