Variable Type "INTEGER" try 1-4
Dim bb as integer
bb=1-4
Print Str(bb)
END
This prints 65533
How can I get a Print of -3. I thought that the Integer type would recognize a MSB of 1 and report -3
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Variable Type "INTEGER" try 1-4
Dim bb as integer
bb=1-4
Print Str(bb)
END
This prints 65533
How can I get a Print of -3. I thought that the Integer type would recognize a MSB of 1 and report -3
This code works as expected and returns -3
Perhaps you should not be using "STR" with Print
Simply use : Print BB
Last edit: William Roth 2021-03-18
Try:
Print bb
Print is overloaded and will print the type you send it.
Use Str32()