Floating point numbers in XML
Posted
by Jamie
on Stack Overflow
See other posts from Stack Overflow
or by Jamie
Published on 2010-05-21T19:58:59Z
Indexed on
2010/05/21
20:10 UTC
Read the original article
Hit count: 223
what is the best way to handle floating point numbers in XML? If I have, for instance:
double a = 123.456;
and I would like to keep it as
<A> 123.456 </A>
simply using ...
myDoc.createTextNode(a.ToString());
is fine? Or should it be done with some Globalization stuff to make it region-independent?
© Stack Overflow or respective owner