Skip to main content
Module

x/typed_numeric/mod.ts>Int128

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

Constructors

new
Int128(value?: bigint)

Methods

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

Static Methods

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