effect-io-ai

Package: effect
Module: BigInt

BigInt.subtract

Provides a subtraction operation on bigints.

When to use

Use to subtract one bigint value from another.

Example (Subtracting bigints)

import { BigInt } from "effect"
import * as assert from "node:assert"

assert.deepStrictEqual(BigInt.subtract(2n, 3n), -1n)

Signature

declare const subtract: { (that: bigint): (self: bigint) => bigint; (self: bigint, that: bigint): bigint; }

Source

Since v2.0.0