Android Question how to get numbers after decimal separator?

Discussion in 'Android Questions' started by Massy, Jun 4, 2015.

  1. Massy

    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
    Code:
    Dim values As List
    values = 
    Regex.Split(".", myString)
    but it doesn't work...
    Code:
    Log(values.Get(1)
    gives me an error
    Any help will be much appreciated
    thanks
     
    Last edited: Jun 4, 2015
  2. NJDude

    NJDude Expert Licensed User

    Try:
    Code:
    values = Regex.Split("\.", myString)
    Reserved characters have to be escaped.
     
    Massy likes this.
  3. Massy

    Massy Member Licensed User

    Thanks a lot Dude! It works ok now
     
Loading...