Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hex/src/data/deps.ts>mongo.Double

An ecosystem delivering practices, philosophy and portability.
Go to Latest
class mongo.Double
Re-export
import { mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { Double } = mongo;

A class representation of the BSON Double type.

Constructors

new
Double(value: number)

Create a Double type

Properties

_bsontype: string
value: number

Methods

toExtendedJSON(options?: EJSONOptions): number | DoubleExtended
toJSON(): number
toString(radix?: number): string
valueOf(): number

Access the number value.

Static Methods

fromExtendedJSON(doc: DoubleExtended, options?: EJSONOptions): number | Double