Skip to main content
Module

x/typed_numeric/mod.ts>Int256

Typed numeric for Deno.
Latest
class Int256
extends Numeric<Int256, bigint>
import { Int256 } from "https://deno.land/x/typed_numeric@0.5.0/mod.ts";

Constructors

new
Int256(value?: bigint)

Methods

add(value: Int256): Int256
and(value: Int256): Int256
div(value: Int256): Int256
exp(value: Int256): Int256
logicalLeft(n: bigint): Int256
logicalRight(n: bigint): Int256
mul(value: Int256): Int256
or(value: Int256): Int256
rem(value: Int256): Int256
rotateLeft(n: bigint): Int256
rotateRight(n: bigint): Int256
sub(value: Int256): Int256
toBeBytes(): Uint8Array
toLeBytes(): Uint8Array
value(): bigint
xor(value: Int256): Int256

Static Methods

fromBeBytes(bytes: Uint8Array): Int256
fromLeBytes(bytes: Uint8Array): Int256
max(): bigint
min(): bigint