I have a problem i want to convert this string "999,999.00" to double variable but this function returns me zero
B4X:
dim doubleValue as double
textViewValue = "999,999.00"
doubleValue = returnDouble (textViewValue)
Sub returnDouble(strValue As String) As Double
If IsNumber(strVal) Then
Dim doubleValue As Double : doubleValue = strVal
Return doubleValue
Else
Return 0
End If
End Sub