By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,543 Members | 1,887 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,543 IT Pros & Developers. It's quick & easy.

DataSet.WriteXML writes decimals in Scientific Notation

P: n/a
I have a DataSet that contains a table with about 6 columns of high accuracy
decimal values. When I try to write out the DataSet using the WriteXML()
function the XML is written fine, but the decimal values are written out in
scientific notation ("9.984348392E+08"). This wouldn't be a problem except
when I try to READ the XML file back into a DataSet I keep getting a
System.FormatException saying "Input string was not in a correct format." Is
there a way to get the DataSet to write out the number without using
Scientific Notation? Or is there someway to have it parse the scientific
notation when reading the numbers in? Thanks for any help.

Smoke

May 26 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
See http://support.microsoft.com/default...en-us%3B321542

MS has a hot fix for this issue.

Cheers,

Greg Young
MVP - C#
"rSmoke" <rS****@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...
I have a DataSet that contains a table with about 6 columns of high
accuracy
decimal values. When I try to write out the DataSet using the WriteXML()
function the XML is written fine, but the decimal values are written out
in
scientific notation ("9.984348392E+08"). This wouldn't be a problem except
when I try to READ the XML file back into a DataSet I keep getting a
System.FormatException saying "Input string was not in a correct format."
Is
there a way to get the DataSet to write out the number without using
Scientific Notation? Or is there someway to have it parse the scientific
notation when reading the numbers in? Thanks for any help.

Smoke

May 27 '06 #2

P: n/a
Thanks for the link!

"Greg Young" wrote:
See http://support.microsoft.com/default...en-us%3B321542

MS has a hot fix for this issue.

Cheers,

Greg Young
MVP - C#
"rSmoke" <rS****@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...
I have a DataSet that contains a table with about 6 columns of high
accuracy
decimal values. When I try to write out the DataSet using the WriteXML()
function the XML is written fine, but the decimal values are written out
in
scientific notation ("9.984348392E+08"). This wouldn't be a problem except
when I try to READ the XML file back into a DataSet I keep getting a
System.FormatException saying "Input string was not in a correct format."
Is
there a way to get the DataSet to write out the number without using
Scientific Notation? Or is there someway to have it parse the scientific
notation when reading the numbers in? Thanks for any help.

Smoke


May 30 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.