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 Jon, 12 years ago

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

comment:2 by Jon, 12 years ago

Milestone: 3.3.13.11
Owner: set to Jon
Resolution: Fixed
Status: newclosed

Fixed by revision [10493] in version: 3.3.13.11

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.