You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
great! Microsoft BASIC has it as MOD instead of %, if you want to make it more compatible with GW-BASIC etc. The integer division is also \ (backslash) but I understand you can't type it on the C16 keyboard :-)
Anyway they are a good addition to the language, well done!
Yes I know about MOD statement but other languages use single chars operands (i.e. C/C++) and I liked this way and though it was easier (it is more convenient when typing lists: 1 char instead of 3 chars). Moreover, when you port a program from another BASIC dialect you know that you have to make some adaptations, like LOCATE that it doesn't work like in GW-BASIC (I use the format X,Y for coordinates, while GW-BASIC uses Y,X), so I think that this was not a great problem.
Same for integer division operand: I didn't have the \ char on the C16 keyboard. I could have used # instead of other chars (i.e., I evaluated ÷, too, that it's available with C= and /) that are not present on the keys.
it would be nice to have the
MOD
operator, sometimes you need it and you have to emulate it viaINT()
.The text was updated successfully, but these errors were encountered: