Android Question Double to string 1.0 ends up as 1

jimseng

Active Member
Licensed User
Longtime User
Hello
Here is my code:
Dim dbt As String = main.dbtoffset
Rows = Regex.Split("[.]", dbt)
Spinner2.SelectedIndex = Rows(0)
Spinner3.SelectedIndex = Rows(1)

If main.dbtoffset is 1.1 then dbt becomes "1.1"
However if main.dbtoffset is 1.0 then dbt ends up as "1" and obviously this insn't going to work.
What have I missed?
 
Top