Modify

Opened 14 years ago

Closed 14 years ago

#2255 closed Bug (No Bug)

String value is treated as a number if starts with digits

Reported by: Vlad (bw0) Owned by:
Milestone: Component: AutoIt
Version: 3.3.8.1 Severity: None
Keywords: string as a number Cc:

Description

Hi,

I played with the code provided in the documentation and decided to do some tests. All of a sudden, when using a value like 20QAZ the script reports that this value is positive, though it is not a number. This can be checked with this short piece of code:

Local $var = "20QAZ"
If $var > 0 Then
MsgBox(4096, "", "Value is positive.")

I didn't find any mentioning about this. Could you please check if this is a bug?

Attachments (0)

Change History (1)

comment:1 by Valik, 14 years ago

Resolution: No Bug
Status: newclosed

Try reading the guidelines next time. Specifically the one that says if you're asking a question you're in the wrong place.

Closing as no bug since, well, it's not a bug.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


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