Skip to content

Hex floating-point numbers no longer parse in 1.10.5 #2316

@scottstanfield

Description

@scottstanfield

We know data.table can read floating point numbers in a CSV file just fine. What surprised me is that data.table 1.10.4 could read the Java specific hexadecimal floating point numbers.

If you're not familiar with them, they look like 0x1.21d6353p-1 which is roughly 0.56608. The JDK section 3.10.2 has more details.

Data.table 1.10.4 reads them just fine. But 1.10.5 reads them as a string.

My source CSV file is a simple POJO file from H2O.ai. Three columns: the prediction target (true/false), and the probability of either result (columns FALSE and TRUE). Sample file attached.

Steps to reproduce are trivial, as you can see in the attached screenshots. I'm expecting 1.10.5 to produce the same results as 1.10.4. I don't have a workaround yet.

data.table 1.10.5 (current top-of-tree as of 2017-08-21)

image

data.table 1.10.4

image

The CSV file (had to upload it as a .TXT file)
pojo.txt

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions