I consume a web service with JSON result thats works fine, but a value as string 4.10 is changed to 4 with this function:
If I try to direct assign to Double var result in number exception format 4.10
Can anyone help me? :BangHead:
Regards,
B4X:
Sub ifNullDouble(cString As String, cDefault As Double) As Double
Dim l As Double
Try
l = cString
Return l
Catch
Return cDefault
End Try
End Sub
If I try to direct assign to Double var result in number exception format 4.10
Can anyone help me? :BangHead:
Regards,