2 * A class representation of the BSON Double type.
5 * @param {number} value the number we want to represent as a double.
8 function Double(value) {
9 if(!(this instanceof Double)) return new Double(value);
11 this._bsontype = 'Double';
16 * Access the number value.
19 * @return {number} returns the wrapped double number.
21 Double.prototype.valueOf = function() {
28 Double.prototype.toJSON = function() {
32 module.exports = Double;
33 module.exports.Double = Double;