How are Double values in Datasets serialized

  • Thread starter Thread starter barnum
  • Start date Start date
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!
 
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.
 
Back
Top