Birger Sørensen

Birger Sørensen

  • NA
  • 37
  • 3.4k

Converting a string to a number

Mar 20 2017 5:08 AM
Parsing some XML-files to use in databses.
One of the data is a persons height.
In files it is given in feet  - like 5.58.
Convert.ToDouble(), double.Parse() and double.TryParse() all return 558 - which is not correct.
I have tried with both single and double as the type - and the result is the same. Conversion pretents there is no decimal point.

Anybody has any idea, why  this simple task is not possible in Visual Studio 2015?

Answers (9)