Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a signed, arbitrarily sized integer.

BigInts cannot represent negative zero. This class should be used in situations where negative zero is a supported value, such as when decoding binary Ion Int/VarInt.

https://amazon-ion.github.io/ion-docs/docs/binary.html#uint-and-int-fields

Hierarchy

  • default

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new default(_magnitude: bigint, _isNegative?: boolean): default

Properties

Readonly _isNegative

_isNegative: boolean = ...

Readonly _magnitude

_magnitude: bigint

Accessors

isNegative

  • get isNegative(): boolean

magnitude

  • get magnitude(): bigint

Methods

equals

Static fromNumber

  • fromNumber(value: number): default