You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							34 lines
						
					
					
						
							611 B
						
					
					
				
			
		
		
	
	
							34 lines
						
					
					
						
							611 B
						
					
					
				/**
 | 
						|
 * A class representation of the BSON Double type.
 | 
						|
 *
 | 
						|
 * @class
 | 
						|
 * @param {number} value the number we want to represent as a double.
 | 
						|
 * @return {Double}
 | 
						|
 */
 | 
						|
function Double(value) {
 | 
						|
  if (!(this instanceof Double)) return new Double(value);
 | 
						|
 | 
						|
  this._bsontype = 'Double';
 | 
						|
  this.value = value;
 | 
						|
}
 | 
						|
 | 
						|
/**
 | 
						|
 * Access the number value.
 | 
						|
 *
 | 
						|
 * @method
 | 
						|
 * @return {number} returns the wrapped double number.
 | 
						|
 */
 | 
						|
Double.prototype.valueOf = function() {
 | 
						|
  return this.value;
 | 
						|
};
 | 
						|
 | 
						|
/**
 | 
						|
 * @ignore
 | 
						|
 */
 | 
						|
Double.prototype.toJSON = function() {
 | 
						|
  return this.value;
 | 
						|
};
 | 
						|
 | 
						|
module.exports = Double;
 | 
						|
module.exports.Double = Double;
 |