Modify ↓
Opened 12 years ago
Closed 12 years ago
#2640 closed Bug (Fixed)
Surprising conversion
| Reported by: | jchd18 | Owned by: | Jon |
|---|---|---|---|
| Milestone: | 3.3.13.11 | Component: | AutoIt |
| Version: | 3.3.11.2 | Severity: | None |
| Keywords: | Cc: |
Description
It would be natural to expect an integer from the following operations, involving conversion from (numeric) string to numeric variant:
ConsoleWrite(VarGetType("17" + 0) & @CRLF)
ConsoleWrite(VarGetType("17" - 0) & @CRLF)
ConsoleWrite(VarGetType("17" * 1) & @CRLF)
The beta gives the same result.
Attachments (0)
Change History (2)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
| Milestone: | → 3.3.13.11 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed by revision [10493] in version: 3.3.13.11
Note:
See TracTickets
for help on using tickets.

Yeah, weird. I've changed it to convert to an appropriate number type first rather than forcing a double.