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

Namespaces

Type aliases

Constructors

Properties

Accessors

Methods

Type aliases

Static JSON

JSON: number

Constructors

constructor

Properties

Private int32

int32: Int32Array = new Int32Array([0])

Accessors

i

js_int

  • get js_int(): number

Methods

add

assign

cmp

copy

eq

  • eq(n: Int32 | number): boolean

gt

  • gt(n: Int32 | number): boolean

gteq

  • gteq(n: Int32 | number): boolean

lt

  • lt(n: Int32 | number): boolean

lteq

  • lteq(n: Int32 | number): boolean

sub

toJSON

toString

  • toString(): string

Static fromJSON

Generated using TypeDoc