@tempots/std

biPow() function

Calculates the power of a bigint number.

Signature:

biPow: (x: bigint, y: bigint) => bigint

Parameters

Parameter

Type

Description

x

bigint

The base number.

y

bigint

The exponent.

Returns: bigint

The result of raising x to the power of y.

Exceptions

Throws ArgumentError if the exponent y is negative.