Orange Forum • View topic - Strange numeric corruption bug in reading simple .txt file?

Strange numeric corruption bug in reading simple .txt file?

A place to ask questions about methods in Orange and how they are used and other general support.

Strange numeric corruption bug in reading simple .txt file?

Postby yang » Thu Jan 09, 2014 0:43

Any ideas?

Code: Select all
$ 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']


Re: Strange numeric corruption bug in reading simple .txt fi

Postby marko » Thu Jan 09, 2014 13:03

This is a rounding error, as continuous numbers are currently stored as 32-bit floating point numbers.


Return to Questions & Support



cron