[mailto:[EMAIL PROTECTED]]On Behalf Of
> Morten Abrahamsen
> Sent: 31 May 2002 12:01
> To: [EMAIL PROTECTED]
> Subject: Re: [DOTNET] XmlConvert and Decimal bug
>
>
> I know!
>
> But the problem isn't the parser, it's the XmlSchema 'compliant'
> XmlConvert.To
between XML Schema (XSD) Types and .NET Framework Types describes the
mapping between XML Schema (XSD) and .NET data types.
Morty
-Original Message-
From: Morten Abrahamsen
Sent: Friday, May 31, 2002 1:01 PM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] XmlConvert and Decimal bug
I know!
But
shouldn't write the
exponential format in the first place...
Am I wrong ?
Morty
-Original Message-
From: Richard Birkby [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 12:47 PM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] XmlConvert and Decimal bug
The conversion calls
pes.
http://www.w3.org/TR/xmlschema-2/#decimal
The spec allows up to 18 digits and no exponent.
Richard
> -Original Message-
> From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of
> Morten Abrahamsen
> Sent: 31 May 2002 11:16
> To: [EMAIL PROTECTED]
> Subj
One would assume that the following would work:
string decimalString = XmlConvert.ToString(0.5M);
decimal dec = XmlConvert.ToDecimal(decimalString);
However it throws a FormatException because the string conversion
results in an exponential format, which isn't permitted in th