Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Int32

An IntType that restricts the number to 32 bits by using an Int32Array.

inheritdoc
example
const a = new Int32(5)
console.log(a.toString()) // 5
a.add(10).sub(8)
console.log(a.toString()) // 7
const b = new Int32(3)
console.log(a.cmp(b)) // 1

Hierarchy

Index

Modules

Type aliases

Constructors

Properties

Accessors

Methods

Type aliases

Static JSON

JSON: number

Constructors

constructor

Properties

Private int32

int32: Int32Array = new Int32Array([0])

is_rclk

is_rclk: boolean = false

Accessors

js_int

  • get js_int(): number

Methods

add

assign

cmp

eq

  • eq(n: Int32 | number): boolean

gt

  • gt(n: Int32 | number): boolean

gteq

  • gteq(n: Int32 | number): boolean
  • Parameters

    Returns boolean

    True if this object is greater than or equal to the one provided.

lt

  • lt(n: Int32 | number): boolean

lteq

  • lteq(n: Int32 | number): boolean

sub

toJSON

toString

  • toString(): string

Static fromJSON

Generated using TypeDoc