Skip to main content
Module

x/denomongo_unittest_utils/deps.ts>Bson.Decimal128

Unittest utilities for deno_mongo
Latest
class Bson.Decimal128
Re-export
import { Bson } from "https://deno.land/x/denomongo_unittest_utils@v0.5.3/deps.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