- Jun 6, 2020
- 11,559
- 4,422
hi
i dont know if it is a bug but it seems to me to be one.
if i use before the MOD function a calculation without () i get a different result then if i would use ()
like this code here:
B4X:
B4X:
what i understand is that MOD comes before +/- so the calculation looks now like this: i + (2 mod 7) but it doesnot make sense when we use mod in coding. or am i wrong?
i dont know if it is a bug but it seems to me to be one.
if i use before the MOD function a calculation without () i get a different result then if i would use ()
like this code here:
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
but this is correct:Waiting for debugger to connect...
Program started.
2
3
4
5
6
7
8
9
Click to expand...
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
hmmm...Waiting for debugger to connect...
Program started.
2
3
4
5
6
0
1
2
Click to expand...
what i understand is that MOD comes before +/- so the calculation looks now like this: i + (2 mod 7) but it doesnot make sense when we use mod in coding. or am i wrong?
برای دیدن لینک ها باید ثبت نام کنید