Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Decimal128

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

Hierarchy继承层级

  • Decimal128

Index索引

Constructors构造函数

Properties属性

Methods方法

Constructors构造函数

  • new Decimal128(bytes: string | Buffer): Decimal128
  • Parameters参数

    • bytes: string | Buffer

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

    Returns 返回 Decimal128

Properties属性

_bsontype: "Decimal128"
bytes: Buffer

Methods方法

  • inspect(): string
  • Returns 返回 string

  • toJSON(): Decimal128Extended
  • Returns 返回 Decimal128Extended

  • toString(): string
  • Create a string representation of the raw Decimal128 value创建原始Decimal128值的字符串表示

    Returns 返回 string

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

    Parameters参数

    • representation: string

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

    Returns 返回 Decimal128

Generated using TypeDoc