Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Decimal128

A class representation of the BSON Decimal128 type.

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

  • new Decimal128(bytes: string | Uint8Array): Decimal128
  • Parameters

    • bytes: string | Uint8Array

      a buffer containing the raw Decimal128 bytes in little endian order, or a string representation as returned by .toString()

    Returns Decimal128

Properties

bytes: Uint8Array

Accessors

  • get _bsontype(): "Decimal128"
  • Returns "Decimal128"

Methods

  • inspect(): string
  • Returns string

  • toString(): string
  • Create a string representation of the raw Decimal128 value

    Returns string

  • Create a Decimal128 instance from a string representation

    Parameters

    • representation: string

      a numeric string representation.

    Returns Decimal128

Generated using TypeDoc