One would assume that the following would work:

        string decimalString = XmlConvert.ToString(0.00005M);
        decimal dec = XmlConvert.ToDecimal(decimalString);

However it throws a FormatException because the string conversion
results in an exponential format, which isn't permitted in the ToDecimal
parser.

Is this a common bug, or is this related to some strange locale
settings... (it should be schema compliant and locale invariant
though..)

Any thoughts ?

Morty

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to