Android Question how to get numbers after decimal separator?

Massy

Member
Licensed User
I'm trying to get the hundreds of seconds after the decimal separator in an audiofile position while file is playing and I have a float number in this format 10.23 how can I eliminate 10. and get a string with just 23?
I tryed
B4X:
Dim values As List
values = Regex.Split(".", myString)
but it doesn't work...
B4X:
Log(values.Get(1)
gives me an error
Any help will be much appreciated
thanks
 
Last edited:

NJDude

Expert
Licensed User
Try:
B4X:
values = Regex.Split("\.", myString)
Reserved characters have to be escaped.
 
Top