When working with Excel 2010, I try to save data as an XML Data file. However, some numbers are being formatted to use Scientific notation. For example, the number 0.07 is exported as 7.00000000007E-2 . I checked the cell formatting, and even if the cell is formatted as Text, it is still converted. Also, not all numbers are being formatted.
Hope someone can help with this bizarre issue. Thank you in advance.
Excel is saving the actual stored value. Due to the limited resolution of floating point, the number 7.00000000007E-2 is the nearest possible representation of 0.07 that can be stored in a float. In other words, it is fundamentally not possible to represent 0.07 exactly as a float (probably a double here).
For a good description of the issues, please see the Wikipedia page on Floating Point