M Mostez Well-Known Member Licensed User Longtime User Oct 4, 2019 #1 Hello; how to convert "125.36" string to double? i want to do something like: B4X: Dim StrVal As String = "125.36" Dim Dval As Double = Val(StrVal) Thanks
Hello; how to convert "125.36" string to double? i want to do something like: B4X: Dim StrVal As String = "125.36" Dim Dval As Double = Val(StrVal) Thanks
thetahsk Active Member Licensed User Longtime User Oct 6, 2019 #2 Mostez said: Hello; how to convert "125.36" string to double?.. Click to expand... B4X: Dim StrVal As String = "125.36" Dim Dval As Double = StrVal Upvote 0
Mostez said: Hello; how to convert "125.36" string to double?.. Click to expand... B4X: Dim StrVal As String = "125.36" Dim Dval As Double = StrVal
E emexes Expert Licensed User Oct 6, 2019 #3 thetahsk said: B4X: Dim StrVal As String = "125.36" Dim Dval As Double = StrVal Click to expand... Rarely hurts to check the string beforehand. edit: deleted non-B4R reference: "or to wrap the conversion in a Try..Catch" Last edited: Oct 6, 2019 Upvote 0
thetahsk said: B4X: Dim StrVal As String = "125.36" Dim Dval As Double = StrVal Click to expand... Rarely hurts to check the string beforehand. edit: deleted non-B4R reference: "or to wrap the conversion in a Try..Catch"
Erel B4X founder Staff member Licensed User Longtime User Oct 6, 2019 #4 emexes said: Rarely hurts to check the string beforehand, or to wrap the conversion in a Try..Catch. Click to expand... (No Try / Catch in B4R.) Upvote 0
emexes said: Rarely hurts to check the string beforehand, or to wrap the conversion in a Try..Catch. Click to expand... (No Try / Catch in B4R.)