Skip to main content
Module

x/web_bson/mod.js>Decimal128

web_bson is a fork from mongodb/js-bson
Very Popular
Latest
class Decimal128
extends BSONValue
import { Decimal128 } from "https://deno.land/x/web_bson@v0.3.0/mod.js";

A class representation of the BSON Decimal128 type.

Constructors

new
Decimal128(bytes: Uint8Array | string)

Properties

readonly
_bsontype: "Decimal128"
readonly
bytes: Uint8Array

Methods

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