Dear AutoIt Community,
I'm trying to take a string number and check if it is an Integer or a Float. I couldn't find anything in the Help file so I wrote the following:
Func StringIsIntOrFloat($s_Number)
Select
Case StringIsInt($s_Number)
Return 1
Case StringIsFloat($s_Number)
Return 1
Case Else
Return 0
EndSelect
EndFunc
#cs Return Value
Success: Returns 1.
Failure: Returns 0 if string cannot be an integer or a float.
#ce
; Proof of concept
$s_Number = "1"
If Strin