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

x/model/dependencies/mongo.ts>Bson.Decimal128

model based mongo for deno
Latest
class Bson.Decimal128
Re-export
import { Bson } from "https://deno.land/x/model@v1.2/dependencies/mongo.ts";
const { Decimal128 } = Bson;

A class representation of the BSON Decimal128 type.

Constructors

new
Decimal128(bytes: Uint8Array | string)

Properties

readonly
bytes: Uint8Array

Methods

toJSON(): Decimal128Extended
toString(): string

Create a string representation of the raw Decimal128 value

Static Methods

fromString(representation: string): Decimal128

Create a Decimal128 instance from a string representation