09-29-2018, 10:36 AM

since few months ago i noticed some weird behaviour from mod operand

as happened months ago, it is supposed to display a number on screen ranging from 0 to 65535, but the result gets totally messy

(tested on version 1.8.5 now, the result is as messy as 1.6.12)

Code:

`dim i as uinteger`

cls

do

for i=0 to 65535

print at 9,9;chr$( 48+(i mod 10) )

print at 9,8;chr$( 48+(int(i/10) mod 10) )

print at 9,7;chr$( 48+(int(i/100) mod 10) )

print at 9,6;chr$( 48+(int(i/1000) mod 10) )

print at 9,5;chr$( 48+(int(i/10000) mod 10) )

next

loop

as happened months ago, it is supposed to display a number on screen ranging from 0 to 65535, but the result gets totally messy

(tested on version 1.8.5 now, the result is as messy as 1.6.12)