New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support i8 (64-bit integer) parameters #21
Comments
Maybe node-int64 can help? |
@blaenk - That int 64 module looks like the most straightforward approach. I'll add that with the next set of updates. |
@baalexander: I need There are two issues. One is the one I already mentioned, of grabbing the actual I've also read it's possible to just read it as a float ( Now, the module I previously mentioned, node-int64, alleges to handle this, but the module can only initialize an In my opinion, I think we'd be fine by simply using parseFloat as I have read elsewhere. After all, this is an inherent limitation of node.js by way of V8, so the module can't be held to blame. In fact, I've seen other modules which disclose this limitation. Let me know what you think, so I may file a pull request. |
Here is some more information from the V8 mailing list. It appears using If you prefer, however, we can use bigdecimal.js. I've tested this and it works too, but I think it might be more predictable to the user if we use |
@blaenk - My main reluctance with node-int64 (or bigdecimal) was introducing a whole other datatype into the module. My guess is most of the times, the full precision of i8 is not required and a double level precision may be good enough. I'd happily accept a pull request for using If there's enough demand for full precision support for 64-bit integers, we can always introduce that later. |
@baalexander: Great. I'll get that pull request up then. |
Originally reported by ProjectMoon in Issue #16:
This returns a very small response, but the callback gives me null as an answer.
get_upload_rate
returns me something like this:The text was updated successfully, but these errors were encountered: