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

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

An ecosystem delivering practices, philosophy and portability.
Go to Latest
class mongo.Bson.Decimal128
Re-export
import { mongo } from "https://deno.land/x/hex@0.5.15/src/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