The Long class from https://github.com/mongodb/js-bson/blob/master/lib/bson/long.js
might be helpful as well it's from the google closure lib On Apr 18, 9:26 pm, Chad Retz <[email protected]> wrote: > I had the same problem with a binary protocol. I just gave the data back as > a big numeric string and suggested he use node-bigint[1] or > bigdecimal.js[2] to do more with it. Both of those support arithmetic > operations. > > [1] -https://github.com/substack/node-bigint > [2] -https://github.com/iriscouch/bigdecimal.js > > > > > > > > On Wednesday, April 18, 2012 11:31:23 AM UTC-5, Tony Huang wrote: > > > Hi all, > > > I've implemented a binary based protocol in node.js, and I need a Int64 to > > present the id of the messages. > > > What library should I use to represent unsigned integers as well as > > UInt64s? > > > I've taken a look at the node-int64 module, but it doesn't support any > > calculation which is necessary in my case to decode a compressed int64. > > > Thank you. > > > Best regards. > > > -- > > ------------------------------------------------------ > > Tony Huang [email protected] > > [email protected] > > [email protected] -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
