Module

x/atlas_sdk3/mod.ts>Decimal128

TypeSafe MongoDB Atlas Data API SDK for Deno & Deno Deploy
Latest
class Decimal128
import { Decimal128 } from "https://dotland.deno.dev/x/atlas_sdk3@v0.3.1/mod.ts";

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

import Decimal128
import { Decimal128 } from "https://dotland.deno.dev/x/atlas_sdk3@v0.3.1/mod.ts";