Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/aether/deps.ts>Bson.Double

A Deno library to interface with the Discord API
Latest
class Bson.Double
Re-export
import { Bson } from "https://deno.land/x/aether@v0.0.3/deps.ts";
const { Double } = 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