Reputation: 2242
I found this Use of Greater Than Symbol in XML where the answer is to use the following for 'greater-than' and 'less-than' respectively:
> and <
However, what should we use for 'greater-than-equal-to' and 'less-than-equal-to' ?
I already tried the following but it didn't work for me.
≥ and ≤ and >e; and <e;
Upvotes: 21
Views: 43728
Reputation: 1497
As XML is Unicode-aware, it prefers the raw characters ≤ and ≥. Alternatively, ≤
and ≥
are the hexadecimal character references to ≤ and ≥.
Upvotes: 7
Reputation: 464
For using it in programming languages I chose using Unicode:
Java
"\u2264" for ≤
"\u2265" for ≥
Python
u"\u2264" for ≤
u"\u2265" for ≥
Upvotes: 1