Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB664PE v3.10.0 is now live for X-Mas!!
#48
(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
Reply


Messages In This Thread
RE: QB664PE v3.10.0 is now live for X-Mas!! - by bert22306 - 12-29-2023, 08:53 PM



Users browsing this thread: 13 Guest(s)