How are Double values in Datasets serialized

B

barnum

Hi,

If I use GetXml() to serialize a Dataset into an XML, what will be the
format of a Double value in the Dataset? It seems that I get
Scientific notation if the value is small, otherwise normal notation.
(In other words, it looks like it tries to keep many significant
numbers.)

Can I control what notation I get?

Thanks for any insight!
 
G

Göran Andersson

Hi,

If I use GetXml() to serialize a Dataset into an XML, what will be the
format of a Double value in the Dataset? It seems that I get
Scientific notation if the value is small, otherwise normal notation.
(In other words, it looks like it tries to keep many significant
numbers.)

Can I control what notation I get?

Thanks for any insight!

I have no documentation to back this up, but the logical format to use
would be the round-trip format, i.e. what you get by using
..ToString("r") on the value.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top