(12-29-2023, 09:16 AM)SMcNeill Wrote: [quote="So that's one glitch here. I take full responsibility for this one. I've just always *assumed* when working with hex, one was using *unsigned* values. QBASIC didn't have unsigned values, so the result has to return as signed values to be backwards compatible. This part of the glitch is 100% on me, and should be rather simple to fix." pid="22297" dateline="1703718120"]Damn! Thing is, I always use hex the way you had "always assumed." Always hex number unsigned. I guess, no huge big deal, it's going to take some trial and error to see what old programs of mine will break. I guess I never ran into the problem in my Qbasic days.
Wait. If I do x = Val("&h" + "ffff")
Will I still get x = 65535