Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Just out of curiosity, can it parse "123,95" ? Commented Mar 25, 2014 at 19:24
  • 2
    Jon Skeet just saved your question from being closed Commented Mar 25, 2014 at 19:25
  • just tried it and it worked... was along time since i coded. so was looking online for how decimals worked and there were '.' everywhere. Commented Mar 25, 2014 at 19:27
  • @Pepps decimal literals are expressed as 123.95 almost universally in programming languages. However, the string representation of that decimal varies widely from one region to another around the earth. .NET is trying to be nice and read in decimal the way you would most naturally write them (accordion to the locale settings on your computer). Commented Mar 25, 2014 at 19:31