How are Double values in Datasets serialized

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • barnum@bluezone.no

    How are Double values in Datasets serialized

    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!
  • =?ISO-8859-1?Q?G=F6ran_Andersson?=

    #2
    Re: How are Double values in Datasets serialized

    barnum@bluezone .no wrote:
    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.

    --
    Göran Andersson
    _____
    Göran Anderssons privata hemsida.

    Comment

    Working...