Modify

Opened 15 years ago

Closed 15 years ago

#1854 closed Bug (Fixed)

StringIsFloat returns 1 on non float numbers

Reported by: MrCreatoR <mscreator@…> Owned by: Jon
Milestone: 3.3.7.2 Component: AutoIt
Version: 3.3.6.1 Severity: None
Keywords: String Float Cc:

Description

Here is a simple example that reproduces this bug:

For $i = 1 To 255
    $sChar = Chr($i)
    $vFloat = $i & '.' & $sChar
    
    If Not StringIsDigit($sChar) And StringIsFloat($vFloat) Then
        ConsoleWrite('StringIsFloat(' & $vFloat & ') = 1' & @LF)
    EndIf
Next

Attachments (0)

Change History (2)

comment:1 by Jon, 15 years ago

A unicode bug that's been undetected for 4 years. Unreal.

comment:2 by Jon, 15 years ago

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

Fixed by revision [5992] in version: 3.3.7.2

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.