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构造函数

constructor构造函数

  • 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()一种缓冲区,包含以小尾数顺序排列的原始小数128字节,或.toString()返回的字符串表示形式

    Returns返回Decimal128

Properties属性

_bsontype

_bsontype: "Decimal128"

Readonly bytes

bytes: Buffer

Methods方法

inspect检查

  • inspect(): string
  • Returns返回string

toJSON

  • toJSON(): Decimal128Extended
  • Returns返回Decimal128Extended

toString

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

    Returns返回string

Static fromString

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

    Parameters参数

    • representation: string

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

    Returns返回Decimal128

Generated using TypeDoc