In what kind of way is your data stored, as float or double values, or something else?
Can you tell us in more detail (with some code, if possible) what you tried with DecimalFormat and why exactly you think you are loosing precision (do you have an example which shows this)?
I have just tested that with various long numbers and it is spot on, thank you so much.
I'm sceptical of your requirement for such a rigid format inside the XML. XML holds data and should not really care about the formatting of the values it holds. Only views of the XML data should be concerned with the format of displayed numbers.
Richard Cook
Greenhorn
Joined: Aug 18, 2010
Posts: 22
posted
0
Hi James,
The reason behind this is the XML is imported in a (not very well written) system, and it was falling over with length issues, hence I wanted to get it as close to the original template as possible.
Thanks again
Richard
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.