Modify

Opened 14 years ago

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

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

comment:2 Changed 14 years ago by Jon

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

Fixed by revision [5992] in version: 3.3.7.2

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.