[SERVER-357] make LongNumber class for javascript Created: 13/Oct/09  Updated: 12/Jul/16  Resolved: 25/Jan/10

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: None
Fix Version/s: 1.3.2

Type: Improvement Priority: Major - P3
Reporter: Eliot Horowitz (Inactive) Assignee: Aaron Staple
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-565 NumberLong breaks dataSize Closed
Participants:

 Description   

needs to be for both sm and v8



 Comments   
Comment by auto [ 25/Jan/10 ]

Author:

{'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-357 NumberLong converts to number (double) implicitly when doing operations
http://github.com/mongodb/mongo/commit/a85db023f9a01bcab68386fbe0cf32ccc196d785

Comment by Aaron Staple [ 22/Jan/10 ]

I'll try to implement some kind of math support.

Comment by auto [ 20/Jan/10 ]

Author:{'login': {'remember_token': None, 'auth_token': '2b15f37eaf67ac3f9c029f79f2339eca', 'last_ip': '99.59.73.209', 'billed_on': None, 'disabled': False, 'remember_token_expires_at': None, 'billingid': None, 'billing_attempts': 0, 'upgrade_ignore': None, 'primary':

{'email': 'aaron@10gen.com', 'user_id': 33134, 'primary': None, 'id': 103147}

, 'id': 33134, 'upgrade_accept': None, 'spammy': False, 'bouncing_email': None, 'billing_extra': None, 'updated_at': '2009/12/15 09:22:47 -0800', 'plan': 'free', 'plan_duration': 'month', 'crypted_password': 'f13fa87b01329b155592c62e6309500b90d38c21', 'wants_email': True, 'gift': None, 'created_at': '2008/11/07 00:52:12 -0800', 'login': 'astaple', 'salt': '9127f885b8aa5dfee0cb5d6dd4066dd597dbf5dd', 'gh_role': None}, 'name': 'Aaron', 'email': 'aaron@10gen.com'}
Message: SERVER-357 use consistent bit depth when converting between ints and floats
http://github.com/mongodb/mongo/commit/6a78423e5d777bd9fb4c077e1e6ae1a1afecd6fa

Comment by auto [ 20/Jan/10 ]

Author:

{'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-357 specify boost namespace explicitly
http://github.com/mongodb/mongo/commit/d44586f265bdfaf9509819462ffeadad57a3beb3

Comment by auto [ 20/Jan/10 ]

Author:{'login': {'remember_token': None, 'auth_token': '2b15f37eaf67ac3f9c029f79f2339eca', 'last_ip': '99.59.73.209', 'billed_on': None, 'disabled': False, 'remember_token_expires_at': None, 'billingid': None, 'billing_attempts': 0, 'upgrade_ignore': None, 'primary':

{'email': 'aaron@10gen.com', 'user_id': 33134, 'primary': None, 'id': 103147}

, 'id': 33134, 'upgrade_accept': None, 'spammy': False, 'bouncing_email': None, 'billing_extra': None, 'updated_at': '2009/12/15 09:22:47 -0800', 'plan': 'free', 'plan_duration': 'month', 'crypted_password': 'f13fa87b01329b155592c62e6309500b90d38c21', 'wants_email': True, 'gift': None, 'created_at': '2008/11/07 00:52:12 -0800', 'login': 'astaple', 'salt': '9127f885b8aa5dfee0cb5d6dd4066dd597dbf5dd', 'gh_role': None}, 'name': 'Aaron', 'email': 'aaron@10gen.com'}
Message: SERVER-357 use sized integer types explicitly
http://github.com/mongodb/mongo/commit/22bea6840a42ed0dd52074b87f10392f0ffc18f6

Comment by auto [ 20/Jan/10 ]

Author:

{'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-357 update test to check NumberLong value correctly
http://github.com/mongodb/mongo/commit/aaad1a1c863f6f23cb258432ff44e81586d2ed66

Comment by auto [ 20/Jan/10 ]

Author:

{'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-357 update test to handle NumberLong value
http://github.com/mongodb/mongo/commit/37d6be190898c84d9d0c1626ca4fa2a2f9770cca

Comment by auto [ 20/Jan/10 ]

Author:

{'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-357 NumberLong class for sm
http://github.com/mongodb/mongo/commit/b147ccf752830e24956cf04e388905acd30a4b7d

Comment by Eliot Horowitz (Inactive) [ 20/Jan/10 ]

just round trip and print
should have a toNumber() method or something

Comment by Aaron Staple [ 20/Jan/10 ]

Do we need to be able to do math in js with it, or just round-trip form db and print?

Generated at Thu Feb 08 02:53:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.