This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: saving to file add inexistance characters
Type: behavior Stage:
Components: IO Versions: Python 3.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Gravitania, benjamin.peterson
Priority: normal Keywords:

Created on 2014-12-30 04:21 by Gravitania, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
Python_Send.7z Gravitania, 2014-12-30 04:21 File with the Python script, the xml examples and the .csv result
Messages (2)
msg233190 - (view) Author: Rosa Maria (Gravitania) * Date: 2014-12-30 04:21
I make an xml extractor for mexican internet invoices; the extraction is correct, but when save to csv, some numbers has additional numbers that does not exist, for example 5010.000000 is saved as 5010.0000002. As you can see in the print function at line 155.

The problem is in Python 3.4.2 in machines with windows xp, windows 7 and windows 8
It is an small error, but this data is used for Accounting.

Thanks in advance and best regards.
Rosa Maria
msg233192 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2014-12-30 05:59
That's because line 153 prints extra numbers at the end of the total.
History
Date User Action Args
2022-04-11 14:58:11adminsetgithub: 67320
2014-12-30 05:59:06benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg233192

resolution: not a bug
2014-12-30 04:21:10Gravitaniacreate