urbit/pkg/interface/src/logic/lib/bigInt.ts
2021-02-14 14:11:27 -08:00

11 lines
213 B
TypeScript

import bigInt, { BigInteger } from 'big-integer';
export function max(a: BigInteger, b: BigInteger) {
return a.gt(b) ? a : b;
}
export function min(a: BigInteger, b: BigInteger) {
return a.lt(b) ? a : b;
}