Closed
Description
The 1.8.5 update appears to have introduced some floating-point-ness issue when converting to JSON with max precision:
> packageVersion("jsonlite")
[1] ‘1.8.4’
> jsonlite::toJSON(list(a=c(0.1, 0.2, 0.3)), digits=NA)
{"a":[0.1,0.2,0.3]}
> packageVersion("jsonlite")
[1] ‘1.8.5’
> jsonlite::toJSON(list(a=c(0.1, 0.2, 0.3)), digits=NA)
{"a":[0.10000000000000001,0.20000000000000001,0.29999999999999999]}
Metadata
Metadata
Assignees
Labels
No labels