Converting a List of String to List of Double without losing information (VB.net)

I got a List of String. I am losing information (the dot) when I try to convert an entry to type Double. What am I doing wrong?

 Dim list As New List(Of String)
 Dim a As Double

 list.Add("309.69686")
 a = CDbl(list(0))
 MsgBox(a)
'Output: 30969686


Read more here: https://stackoverflow.com/questions/64945693/converting-a-list-of-string-to-list-of-double-without-losing-information-vb-net

Content Attribution

This content was originally published by Tobias Meran at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: