Hi everyone,
I have the following :

using System;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            double d = Convert.ToDouble("23.4");
        }
    }
}

When I run this with Visual C# 2008 Express in the debugger I get the value 234 for d instead of the expected 23.4
Anyone any ideas why?

try comma instead of dot

Aaargh, could shout myself in the head for this one!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.