Re: [DOTNET] XmlConvert and Decimal bug

2002-05-31 Thread Richard Birkby
[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

Re: [DOTNET] XmlConvert and Decimal bug

2002-05-31 Thread Morten Abrahamsen
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

Re: [DOTNET] XmlConvert and Decimal bug

2002-05-31 Thread Morten Abrahamsen
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

Re: [DOTNET] XmlConvert and Decimal bug

2002-05-31 Thread Richard Birkby
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

[DOTNET] XmlConvert and Decimal bug

2002-05-31 Thread Morten Abrahamsen
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