2021-03-24 13:04:30 +00:00
|
|
|
/**
|
|
|
|
* Finds the smallest positive element that is congruent to a in modulo n
|
2021-03-24 14:11:07 +00:00
|
|
|
*
|
|
|
|
* @remarks
|
|
|
|
* a and b must be the same type, either number or bigint
|
|
|
|
*
|
2021-03-24 17:30:45 +00:00
|
|
|
* @param a - An integer
|
|
|
|
* @param n - The modulo
|
2021-03-24 13:04:30 +00:00
|
|
|
*
|
2022-09-12 08:59:51 +00:00
|
|
|
* @throws {@link RangeError} if n <= 0
|
2021-03-24 17:30:45 +00:00
|
|
|
*
|
|
|
|
* @returns A bigint with the smallest positive representation of a modulo n
|
2021-03-24 13:04:30 +00:00
|
|
|
*/
|
2021-03-24 17:30:45 +00:00
|
|
|
export declare function toZn(a: number | bigint, n: number | bigint): bigint;
|
2021-03-24 13:04:30 +00:00
|
|
|
//# sourceMappingURL=toZn.d.ts.map
|