Class Decimal128

A class representation of the BSON Decimal128 type.BSON Decimal128类型的类表示。

Hierarchy

Constructors构造函数

Properties

Accessors

Methods

Constructors

  • Parameters

    • bytes: string | Uint8Array

      a buffer containing the raw Decimal128 bytes in little endian order, or a string representation as returned by .toString()一个缓冲区,包含按小端序排列的原始Decimal128字节,或.toString()返回的字符串表示

    Returns Decimal128

Properties

bytes: Uint8Array

Accessors

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

Methods

  • Returns string

  • Create a string representation of the raw Decimal128 value

    Returns string

  • Create a Decimal128 instance from a string representation从字符串表示创建Decimal128实例

    Parameters

    • representation: string

      a numeric string representation.数字字符串表示。

    Returns Decimal128

Generated using TypeDoc