﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
95	StringReplace doesn't recognize some number types as not strings	PsaltyDS	Jpm	"Reported in General Support topic #63374 by jennico. 
Tested in 3.2.10.0 and 3.2.11.0 with this:

{{{
$sString = ""0123""

$a = 1 + 1
ConsoleWrite(""Debug: $a = "" & $a & ""  type = "" & VarGetType($a) & ""  IsInt($a) = "" & IsInt($a) & @LF)
$sString_a = StringReplace($sString, $a, ""x"")
ConsoleWrite(""Debug: $sString_a = "" & $sString_a & @LF)

$b = Sqrt(4)
ConsoleWrite(""Debug: $a = "" & $b & ""  type = "" & VarGetType($b) & ""  IsInt($b) = "" & IsInt($b) & @LF)
$sString_b = StringReplace($sString, $b, ""x"")
ConsoleWrite(""Debug: $sString_b = "" & $sString_b & @LF)
}}}


Output is:

{{{
>Running:(3.2.11.0):C:\Program Files\AutoIt3\beta\autoit3.exe ""C:\Program Files\AutoIt3\Scripts\Test_2.au3""    
Debug: $a = 2  type = Int32  IsInt($a) = 1
Debug: $sString_a = 0x23
Debug: $a = 2  type = Double  IsInt($b) = 1
Debug: $sString_b = 01x3
+>08:37:25 AutoIT3.exe ended.rc:0
}}}

With 2 as an INT32 it works correctly, but the DOUBLE causes it to switch to a string-type replace.
"	Bug	closed	3.2.11.1	AutoIt	3.2.10.0		Fixed		
