Skip to content

Commit fae7040

Browse files
authored
Merge pull request arduino#329 from arduino/SimonePDA-patch-13
Update greaterThan.adoc
2 parents 8a5c543 + 9f87475 commit fae7040

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 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 greater than the string on the right. This operator evaluates strings in alphabetical order, on the first character where the two differ. So, for example "b" > "a" and "2" > "1", but "999" > "1000" because 9 comes after 1.
21+
Tests if the String on the left is greater than the String on the right. This operator evaluates Strings in alphabetical order, on the first character where the two differ. So, for example "b" > "a" and "2" > "1", 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
[%hardbreaks]
2525

2626

@@ -33,7 +33,7 @@ string1 > string2
3333

3434
[float]
3535
=== Parameters
36-
`string1, string2` - a string variable
36+
`string1, string2` - a String variable
3737

3838
[float]
3939
=== Returns
@@ -60,4 +60,4 @@ string1 > string2
6060
[role="example"]
6161
* #EXAMPLE# link: https://www.arduino.cc/en/Tutorial/BuiltInExamples#strings[Built-in String Tutorials]
6262
--
63-
// SEE ALSO SECTION ENDS
63+
// SEE ALSO SECTION ENDS

0 commit comments

Comments
 (0)