Open themellion opened 6 years ago
This is not exactly the problem of the jsonlite packge:
toJSON(0.9618001001001001192983, digits = 22)
# [0.9618001001001]
0.9618001001001001 == 0.9618001001001001192983
#274 [1] TRUE
See this question for explanation
Duplicates #231
I am using the following:
jsonlite::toJSON(0.9618000000000000992983, force = TRUE, na = "string", digits = 22, pretty = TRUE, auto_unbox = TRUE, use_signif = TRUE)
and I am getting: 0.9618
Is there a way to keep all the decimals, i.e. 0.9618000000000000992983.
Thanks