I noticed that the compiler removes the parentheses in an expression. Are they virtually still there?
For example I wanted to convert Celcius to Fahrenheit so here is that program line 20:
“20 TempFarhen = (TempC × 1.8) + 32”
When it compiles it looks like this:
“20 TempFarhen = TempC × 1.8 + 32” and it calculates correctly. What if I wanted to do this:
20 TempFarhen = (TempC × 1.8) + (32 * CompFactor)
Would it calculate correctly even though the parentheses were missing?
Also, what about “greater than or equal to”? The compiler would not accept this:
70 IF TEM => 85 AND TEM < 90 THEN GOSUB 270
So I tried this:
70 IF (TEM = 85 OR TEM > 85) AND TEM < 90 THEN GOSUB 270
It compiled it as this:
70 IF TEM = 85 OR TEM > 85 AND TEM < 90 THEN GOSUB 270
Happily, the statement seems to work as intended. It’s almost as if the parentheses were still there. Is there another preferred way to say or a symbol to use for “greater than or equal to”??