is there a function for:

```
ex1:
String = "2+2.3/34"
output: double = 34.0
ex2:
String = "45/4+3-0.4"
output: double = 0.4
```

so, find the last operator and take the next number into double.

note there are no spaces.

This article has been dead for over six months. Start a new discussion instead.

Recommended Articles