Opened 10 years ago

Closed 10 years ago

#2640 closed Bug (Fixed)

Surprising conversion

Reported by: jchd18 Owned by: Jon
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


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 Changed 10 years ago by Jon

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

comment:2 Changed 10 years ago by Jon

  • Milestone set to
  • Owner set to Jon
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [10493] in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Jon.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.