Skip to main content
Module

x/web_bson/src/decimal128.ts>Decimal128

web_bson is a fork from mongodb/js-bson
Very Popular
Go to Latest
class Decimal128
import { Decimal128 } from "https://deno.land/x/web_bson@v0.2.4/src/decimal128.ts";

A class representation of the BSON Decimal128 type.

Constructors

new
Decimal128(bytes: Uint8Array | string)

Properties

_bsontype: string
readonly
bytes: Uint8Array

Methods

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