Modify ↓
#33 closed Bug (No Bug)
_IsNumber() & IsInt() both incorrectly return true
| Reported by: | squirrely1 | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.2.10.0 | Severity: | |
| Keywords: | Cc: |
Description
XP SP2 EN x86
MsgBox(0,"Testing IsInt()",IsInt(Number("K")) & " - Should be: 0")
MsgBox(0,"Testing IsNumber()",IsNumber(Number("K")) & " - Should be: 0")
Attachments (0)
Change History (1)
comment:1 by , on Jan 14, 2008 at 3:02:47 AM
| Resolution: | → nobug |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Break down what you're doing. You call Number("K") and it returns 0, which is a number. You then pass 0 to IsInt() or IsNumber(), both of which correctly return True since you gave it numeric input.
Not a bug.