Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
String comparison oddity...[SOLVED]
#4
Asking about the logic, it's alphabetical.

A before B before C...
1 before 2 before 3...

Compare character by character with -11.2 and -11.1
- vs - is SAME
1 vs 1 is SAME
1 vs 1 is SAME
decimal vs decimal is SAME
2 is GREATER than 1.

Result is -11.2 is greater than -11.1 *as strings*.
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: 1 Guest(s)