Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/web_bson/src/bson.ts>Decimal128

web_bson is a fork from mongodb/js-bson
Very Popular
Go to Latest
class Decimal128
Re-export
import { Decimal128 } from "https://deno.land/x/web_bson@v0.2.5/src/bson.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