#testmode:repl ## Binary operations # Int 1 + 2 100 - 99 7 * 3 21 / 3 1 + 2 * 3 + 4 # Float .2 + .3 1.9 - 1.1 2.1 * 6.5 13.6 / 15.1 1.1 + 2.2 * 3.3 + 4.4 # String "a" + "b" "a" + 2 "a" + 1.337 "a" + "b" * 3 "a" * 9 "a" * 3.3 ## Comparisons x = 42 42 == 42 x == 42 x == x 42 != 42 x != 42 x != x 42 != 23 42 == 23 1.3 != 3.7 1.3 == 3.7 1.12345 == 1.12345 1.12345 != 1.12345 "a" == "a" "a" != "a" "a" != "a" * 2 "a" == "a" * 2 ## Ordered comparisons 42 >= 42 42 <= 42 42 < 42 42 > 42 42.23 >= 42.23 42.23 <= 42.23 42.23 < 42.23 42.23 > 42.23 "42.23" >= 42.23 "42.23" <= 42.23 "42.23" < 42.23 "42.23" > 42.23 ## Logical and/or a = 1 b = 0 c = 2 a && a a && b a && c c && a a || b a || c b || a b || a && a b || b && c b && b #--- #3 #1 #21 #7 #11 #0.5 #0.7999999999999998 #13.65 #0.9006622516556292 #12.76 #"ab" #"a2" #"a1.337" #"abbb" #"aaaaaaaaa" #"aaa" #true #true #true #false #false #false #true #false #true #false #true #false #true #false #true #false #true #true #false #false #true #true #false #false #true #false #false #true #1 #0 #2 #1 #1 #1 #1 #1 #0 #0