relational+operations+-+arithmetic+strings

=3.2.4 h=
 * ===understand that relational operations on alphanumeric strings depend on character codes of the characters and explain the results of this effect (eg why ‘XYZ’ < ‘abc’, ‘2’ > ‘17’ and ‘3’ <> ‘3.0’);===


 * == KEYWORDS == || == DEFINITIONS == ||
 * Alphanumeric || Is ||
 * ASCII ||  ||

Comparing characters

When you compare strings many languages do an alphanumeric comparison Space < pretty much everything 1 < 2 9 < A  A < B  A < a


 * Larger numbers are higher than smaller numbers
 * Letters are higher than numbers
 * Z is the highest letter, A is the lowest
 * Smaller case letters are higher than Upper case letters

Ascii Table [] =ASCII - Simplified= SPACE (and most punctuation) 0-9 in order A-Z in order a-z in order =Relation operations= Most common relational operations: =Comparing Strings= =**With strings the codes of the characters are compared in turn, starting with the first character **= 1004365 < 2 (because 1 is less than 2) Computing < computing (because the code for c is less than C)
 * = (or ==) || Is equal to ||
 * <> (or != ) || Is not equal to ||
 * < || Is less than ||
 * > || Is greater than ||
 * <span style="font-family: 'Lucida Fax','serif'; font-size: 19px;"><= || <span style="font-family: 'Lucida Fax','serif'; font-size: 19px;">Is less than or equal to ||
 * <span style="font-family: 'Lucida Fax','serif'; font-size: 19px;">>= || <span style="font-family: 'Lucida Fax','serif'; font-size: 19px;">Is greater than or equal to ||

<span style="font-family: 'Calibri','sans-serif'; font-size: 37px;">Exam Style Question