Rewind float numbers from a string

Asked

Viewed 41 times

0

I have the following string:

0 0 0 0 1 1 0 3.56 1.5

Only the last two numbers are integer or decimal numbers, each can have several digits.

How can I save only the last two numbers in 2 separate strings?

  • 3

    What have you ever done? What is your difficulty?

  • You can get some of the solutions of this question to make a split by space, put everything inside a array and get the positions size - 1 and size - 2.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.