Parsing floating point numbers
One of my StackOverflow answers is about converting string to double. I answered the question long time ago, but it still gets me some upvotes. It looks like this topic requires some more attention. In this post I’m going to show you about possible pitfalls of parsing float/double numbers. You’re also going to learn how to safely convert string to float and string to double. This post is language agnostic, meaning that the concepts do not depend on specific language. However I’m going to include code snippets in C#. ...