Class UInt64

Represents an unsigned 64-bit value.

Hierarchy

  • UInt64

Constructors

  • Creates a new UInt64 from v, which is either a string containing the value in decimal, or hexadecimal if prefixed with “0x”, or a number. You may use the uint64(v) short-hand for brevity.

    Parameters

    Returns UInt64

Methods

  • Makes a new UInt64 whose value is this + v.

    Parameters

    Returns UInt64

  • Makes a new UInt64 whose value is this & v.

    Parameters

    Returns UInt64

  • Returns an integer comparison result just like String#localeCompare().

    Parameters

    Returns number

  • Returns a boolean indicating whether v is equal to this.

    Parameters

    Returns boolean

  • Makes a new UInt64 whose value is ~`this`.

    Returns UInt64

  • Makes a new UInt64 whose value is this | v.

    Parameters

    Returns UInt64

  • Makes a new UInt64 whose value is this >> v.

    Parameters

    Returns UInt64

  • Makes a new UInt64 whose value is this << v.

    Parameters

    Returns UInt64

  • Makes a new UInt64 whose value is this - v.

    Parameters

    Returns UInt64

  • Converts to a JSON-serializable value. Same as toString().

    Returns string

  • Converts to a number.

    Returns number

  • Converts to a string, optionally with a custom radix.

    Parameters

    • Optional radix: number

    Returns string

  • Converts to a number. Same as toNumber().

    Returns number

  • Makes a new UInt64 whose value is this ^ v.

    Parameters

    Returns UInt64

Generated using TypeDoc