Ticket #190 (closed defect: fixed)
don't use str() for literal floats
| Reported by: | robertwb | Owned by: | robertwb |
|---|---|---|---|
| Priority: | major | Milestone: | 0.11 |
| Component: | Code Generation | Keywords: | |
| Cc: |
Description
The tests at http://hg.cython.org/cython-devel/rev/7087e1042933 fail because float(str(float(1.0/3))) != 1.0/3. One must use repr, which prints enough digits to faithfully reconstruct the exact float.
Change History
Note: See
TracTickets for help on using
tickets.
