Skip to main content
Module

x/atlas_sdk/deps.ts>Decimal128

TypeSafe MongoDB Atlas Data API SDK for Deno, Deno Deploy and Node.js
Latest
class Decimal128
extends BSONValue
import { Decimal128 } from "https://deno.land/x/atlas_sdk@v1.1.3/deps.ts";

A class representation of the BSON Decimal128 type.

Constructors

new
Decimal128(bytes: Uint8Array | string)

Properties

readonly
_bsontype: "Decimal128"
readonly
bytes: Uint8Array

Methods

inspect(): string
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