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

x/hex/src/lib/data/deps.ts>mongo.Bson.Decimal128

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
class mongo.Bson.Decimal128
Re-export
import { mongo } from "https://deno.land/x/hex@0.6.5/src/lib/data/deps.ts";
const { Decimal128 } = mongo.Bson;

A class representation of the BSON Decimal128 type.

Constructors

new
Decimal128(bytes: Uint8Array | string)

Properties

_bsontype: string
readonly
bytes: Uint8Array

Methods

toExtendedJSON(): Decimal128Extended
toJSON(): Decimal128Extended
toString(): string

Create a string representation of the raw Decimal128 value

Static Methods

fromExtendedJSON(doc: Decimal128Extended): Decimal128
fromString(representation: string): Decimal128

Create a Decimal128 instance from a string representation