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

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

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

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