Planeshifter / node-Rstats

[UNMAINTAINED] An interface for node.js to statistical programming language R based on the fabulous Rcpp package
GNU General Public License v2.0
59 stars 16 forks source link

fix toJSON for number precision issue #8

Closed ghost closed 9 years ago

ghost commented 9 years ago
// test for RJSONIO toJSON precision issue
h.parseEvalQ("json = toJSON(1234687.796545568, digits=Inf)")
json  = h.get('json')
json = JSON.parse(json)
console.log(json)
Planeshifter commented 9 years ago

Thanks for finding and fixing this rounding issue! I merged your pull request into the master branch and published an updated version to npm.