We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = None closed_at = <Date 2009-03-28.19:18:22.579> created_at = <Date 2009-03-28.18:58:35.207> labels = ['interpreter-core', 'type-bug', 'invalid'] title = 'Wrong dump of floats' updated_at = <Date 2009-03-28.19:18:22.578> user = 'https://bugs.python.org/stein'
bugs.python.org fields:
activity = <Date 2009-03-28.19:18:22.578> actor = 'benjamin.peterson' assignee = 'none' closed = True closed_date = <Date 2009-03-28.19:18:22.579> closer = 'benjamin.peterson' components = ['Interpreter Core'] creation = <Date 2009-03-28.18:58:35.207> creator = 'stein' dependencies = [] files = [] hgrepos = [] issue_num = 5589 keywords = [] message_count = 3.0 messages = ['84323', '84324', '84327'] nosy_count = 3.0 nosy_names = ['ezio.melotti', 'r.david.murray', 'stein'] pr_nums = [] priority = 'normal' resolution = 'not a bug' stage = 'resolved' status = 'closed' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue5589' versions = ['Python 2.6']
The text was updated successfully, but these errors were encountered:
Hi there,
I just recognized a weird behaviour of the json module...
Dumpig a float like 0.1 I get some crazy output.
Here is an example:
>>> import json >>> json.dumps([.1]) '[0.10000000000000001]'
Very simple to reproduce;)
Sorry, something went wrong.
>>> .1 0.10000000000000001
Read http://docs.python.org/tutorial/floatingpoint.html
As Ezio points out, this is correct Python behavior.
No branches or pull requests
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: