Skip to main content
Module

x/web_bson/src/bson.ts>Double

web_bson is a fork from mongodb/js-bson
Very Popular
Go to Latest
class Double
Re-export
import { Double } from "https://deno.land/x/web_bson@v0.2.4/src/bson.ts";

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