Skip to content

Commit b7cc0f3

Browse files
author
SimonePDA
authored
Merge pull request #293 from robsoncouto/patch-12
Fixed missing "equal to" in the operator description
2 parents ad9cb39 + aa64b2f commit b7cc0f3

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
1-
---
1+
---
22
title: ">="
33
title_expanded: greater than or equal to
44
categories: [ "Data Types" ]
55
subCategories: [ "StringObject Operator" ]
66
---
77

8-
9-
10-
11-
128
= >= Greater Than Or Equal To
139

14-
1510
// OVERVIEW SECTION STARTS
1611
[#overview]
1712
--
1813

1914
[float]
2015
=== Description
21-
Tests if the string on the left is greater than the string on the right. This operator evaluate 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.
16+
Tests if the string on the left is greater 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 "b" >= "a" and "2" >= "1", but "999" >= "1000" because 9 comes after 1.
2217

2318
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.
2419

@@ -61,4 +56,4 @@ string1 >= string2
6156
[role="example"]
6257
* #EXAMPLE# link: https://www.arduino.cc/en/Tutorial/BuiltInExamples#strings[Built-in String Tutorials]
6358
--
64-
// SEE ALSO SECTION ENDS
59+
// SEE ALSO SECTION ENDS

0 commit comments

Comments
 (0)