Represents a base integer.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

  • Creates a base value.

    Parameters

    • size: number

      Size of the integer.

    • value: number | bigint

      Value.

    • Optional isSigned: boolean

      \c true if the value should be treated as signed.

    Returns BaseValue

Properties

isSigned: boolean

\c true if the value should be treated as signed.

size: number

Size of the integer.

value: number | bigint

Value.

Methods

  • Returns representation of this object that can be stored in JSON.

    Returns string | number

    JSON-safe representation of this object.

  • Converts base value to string.

    Returns string

    String representation.