Convert dropdown values into decimal number

Convert dropdown values into decimal number

Hi

I have a dropdown menu with this values:
      1
      1,5
      2
      2,5

But I cant work with this values as number

I tried with  toLong()  but it does not  work with decimal numbers.

Thanks in advance