Modify

Opened 4 years ago

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

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

Fixed by revision [10493] in version: 3.3.13.11

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

Action
as closed The owner will remain Jon.
Author


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

 
Note: See TracTickets for help on using tickets.