Ticket #1354 (closed bug: wontfix)

Opened 7 months ago

Last modified 7 months ago

Strange numeric corruption bug in reading simple .txt file?

Reported by: yang Owned by:
Milestone: Component: library
Severity: major Keywords:
Cc: Blocking:
Blocked By:

Description

$ cat simple.txt
C#Foo	cD#class
42221845	yay

$ ipython
Python 2.7.2 (default, Oct 11 2012, 20:14:37)
Type "copyright", "credits" or "license" for more information.

IPython 0.13.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import orange; print orange.ExampleTable('simple.txt')[0]
[42221844, 'yay']

Change History

comment:1 Changed 7 months ago by marko

  • Status changed from new to closed
  • Resolution set to wontfix

Continuous numbers are 32-bit floating point number. This number is higher than the limit of exact representation. What you see is a rounding error.

This will be changed in Orange 3, which uses numpy.

Note: See TracTickets for help on using tickets.