Skip to content

If array index is not integer, it's transformed to integer.

Francesco Sblendorio requested to merge sblendorio/swbasic:master into master

If array index is not integer, it's transformed to integer. Sample code:

10 X(1) = 5
20 PRINT X(3/2)

It should return "5"



Fix MID(S,N) Sample code:

10 PRINT MID$("WORLD", 3)

It should return "RLD"



STR$(N) should start with a whitespace if number is positive (the sign) Sample code:

10 PRINT STR$(3)

It should return " 3"



VAL("STRING") should return 0 Sample code:

10 PRINT VAL("ABC")


Integer division Sample code:

10 PRINT 5 \ 2

Should return 2



Unary plus Sample code:

10 PRINT 2++3

Should return 5

Merge request reports