Code: Select all
DefType.l a,b,c
a = -1073741824
b = 3
c = a * b
d$ = Str(c)
OpenConsole()
PrintN(d$)
dummy$ = Input()
CloseConsole()
; Correct result: -3221225472
The debugger should check a variable overflow and inform the user. Would avoid many false calculations...
