Ticket #190 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Changed 4 years ago by robertwb

  • status changed from new to closed
  • resolution set to fixed

Changed 4 years ago by robertwb

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 4 years ago by robertwb

  • owner changed from somebody to robertwb
  • status changed from reopened to new

Changed 4 years ago by robertwb

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.