[issue5589] Wrong dump of floats
Sebastian Billaudelle
report at bugs.python.org
Sat Mar 28 19:58:36 CET 2009
New submission from Sebastian Billaudelle <stein at cream-project.org>:
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;)
- Sebastian
----------
components: Library (Lib)
messages: 84323
nosy: stein
severity: normal
status: open
title: Wrong dump of floats
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5589>
_______________________________________
More information about the Python-bugs-list
mailing list