0

Shouldn't ≥ also be an acceptable substitute for >=?

A problem asked for setting up an if statement wherein it was looking for a value being greater than or equal to 180. As this was not a problem with a word/answer bank, I had to type in the correct symbol, but it did not accept ≥ as an answer. I ended up using bits to show the solution, which was >=.

15th Jan 2024, 3:10 AM
Rho
Rho - avatar
3 odpowiedzi
+ 6
Programmatical symbols are different than Mathematical symbols.
15th Jan 2024, 4:00 AM
A͢J
A͢J - avatar
+ 6
Each programming language has its own rules, syntax, grammar, keywords, operators. In most cases, it is an important design principle that characters should be easy to type with a conventional keyboard. There are some languages where symbols are quite unique and different. For example, APL (literally meaning "A Programming Language") was designed in the 1950s as a mathematical notation, and later became an actual programming language. https://en.wikipedia.org/wiki/APL_syntax_and_symbols And many similar languages emerged since, mostly in the array language family. There are also some esoteric language that deal with symbols, like Emojicode https://www.emojicode.org/ Or the language Piet uses colorful 2d images as the code itself. https://www.dangermouse.net/esoteric/piet.html
15th Jan 2024, 6:19 AM
Tibor Santa
Tibor Santa - avatar
+ 3
>= are two characters, ≤ is a single character. The parser probably is not written to recognize the latter.
15th Jan 2024, 4:20 AM
Bob_Li
Bob_Li - avatar