Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
String comparison oddity...[SOLVED]
#2
It's the difference in lengths QB64 compares -1 to space + "1" (if you don't _trim$) for positive 1 or Compare 33 to 3+nothings might be OK but neg reverses

Could try right alignment of numbers in a fixed size string buffer and skip Val but Val is probably faster, oh but Val won't work for the big strings!
b = b + ...
Reply


Messages In This Thread
String comparison oddity...[SOLVED] - by Pete - 08-05-2022, 06:00 PM
RE: String comparison oddity... - by bplus - 08-05-2022, 06:19 PM
RE: String comparison oddity...[SOLVED] - by Pete - 08-05-2022, 06:34 PM
RE: String comparison oddity... - by SMcNeill - 08-05-2022, 06:21 PM
RE: String comparison oddity... - by SMcNeill - 08-05-2022, 06:27 PM
RE: String comparison oddity...[SOLVED] - by Pete - 08-05-2022, 07:16 PM



Users browsing this thread: 3 Guest(s)