H hasexxl1988 Active Member Licensed User Longtime User May 27, 2012 #1 Hello, is there a possibility to divide a number in 2? e.g. 105.73900 separation formula Value1 = 105 Value2 = 73900 Thanks in advance
Hello, is there a possibility to divide a number in 2? e.g. 105.73900 separation formula Value1 = 105 Value2 = 73900 Thanks in advance
Ricky D Well-Known Member Licensed User Longtime User May 27, 2012 #2 Something like this: B4X: Dim s As String s = yournumber Dim s1() As String s1 = Regex.Split(".", s) Value1 = s1(0) Value2 = s1(1) regards, Ricky Last edited: May 27, 2012 Upvote 0
Something like this: B4X: Dim s As String s = yournumber Dim s1() As String s1 = Regex.Split(".", s) Value1 = s1(0) Value2 = s1(1) regards, Ricky
Erel B4X founder Staff member Licensed User Longtime User May 28, 2012 #4 '.' is a special regular expression character. You should escape it: B4X: s1 = Regex.Split("\.", s) Upvote 0