Opened 13 years ago

Closed 13 years ago

#1854 closed Bug (Fixed)

StringIsFloat returns 1 on non float numbers

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


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)

Attachments (0)

Change History (2)

comment:1 Changed 13 years ago by Jon

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

comment:2 Changed 13 years ago by Jon

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

Fixed by revision [5992] 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.