Rdatatable / data.table

R's data.table package extends data.frame:
http://r-datatable.com
Mozilla Public License 2.0
3.58k stars 977 forks source link

Small doubles are serialized incorrectly by fwrite #2398

Open st-pasha opened 6 years ago

st-pasha commented 6 years ago
> # This is correct, up to some unavoidable loss in precision
> data.table(A=1e-323)
               A
1: 9.881313e-324
> # But this is not
> fwrite(data.table(A=1e-323))
A
1.1125369292536e-308
mattdowle commented 6 years ago
> .Machine
$double.xmin
[1] 2.225074e-308

So I wouldn't say this is particularly urgent for next release, since 1e-323 < .Machine$double.xmin. Moving to candidate milestone.