Deciding greater, smaller or equal relationships (Q1 vs Q2)
Deciding greater, smaller or equal relationships (Q1 vs Q2) A greater than (Q1 > Q2) comparison checks if Q1 is greater than Q2 . Q1 > Q2 is tr...
Deciding greater, smaller or equal relationships (Q1 vs Q2) A greater than (Q1 > Q2) comparison checks if Q1 is greater than Q2 . Q1 > Q2 is tr...
Deciding greater, smaller or equal relationships (Q1 vs Q2)
A greater than (Q1 > Q2) comparison checks if Q1 is greater than Q2.
Example: 5 > 3, because 5 is larger than 3.
A smaller than (Q1 < Q2) comparison checks if Q1 is smaller than Q2.
Example: 2 < 4, because 2 is smaller than 4.
An equal to (Q1 = Q2) comparison checks if Q1 and Q2 are exactly the same.
Example: 5 = 5, because 5 has the same value as 5.
Q1 vs Q2 can be combined using the greater than, smaller than, and equal to operators:
Q1 > Q2 if Q1 is greater than Q2.
Q1 < Q2 if Q1 is smaller than Q2.
Q1 = Q2 if Q1 and Q2 have the same value.
Remember:
The order of Q1 > Q2 and Q1 < Q2 is important!
Comparing equal values with Q1 = Q2 is a separate comparison