Skip to content

Commit d5dbca5

Browse files
authored
Merge pull request arduino#331 from arduino/SimonePDA-patch-15
Update lessThanOrEqualTo.adoc
2 parents 98216e5 + 9923ca7 commit d5dbca5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Language/Variables/Data Types/String/Operators/lessThanOrEqualTo.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ subCategories: [ "StringObject Operator" ]
1818

1919
[float]
2020
=== Description
21-
Tests if the string on the left is less than or equal to the string on the right. This operator evaluate strings in alphabetical order, on the first character where the two differ. So, for example "a" < "b" and "1" < "2", but "999" > "1000" because 9 comes after 1.
21+
Tests if the String on the left is less than or equal to the String on the right. This operator evaluate Strings in alphabetical order, on the first character where the two differ. So, for example "a" < "b" and "1" < "2", but "999" > "1000" because 9 comes after 1.
2222

23-
Caution: String comparison operators can be confusing when you're comparing numeric strings, because the numbers are treated as strings and not as numbers. If you need to compare numbers numerically, compare them as ints, floats, or longs, and not as Strings.
23+
Caution: String comparison operators can be confusing when you're comparing numeric Strings, because the numbers are treated as Strings and not as numbers. If you need to compare numbers numerically, compare them as ints, floats, or longs, and not as Strings.
2424

2525
[%hardbreaks]
2626

@@ -61,4 +61,4 @@ string1 <= string2
6161
[role="example"]
6262
* #EXAMPLE# link: https://www.arduino.cc/en/Tutorial/BuiltInExamples#strings[Built-in String Tutorials]
6363
--
64-
// SEE ALSO SECTION ENDS
64+
// SEE ALSO SECTION ENDS

0 commit comments

Comments
 (0)