UNPKG

@hastom/fixed-point

Version:

Light lib for fixed point math made around native bigint

8 lines (7 loc) 426 B
export declare const pow10: (exp: bigint) => bigint; export declare const toPrecision: (base: bigint, to: bigint, from: bigint) => bigint; export declare const min2: (a: bigint, b: bigint) => bigint; export declare const max2: (a: bigint, b: bigint) => bigint; export declare const min: (...args: bigint[]) => bigint; export declare const max: (...args: bigint[]) => bigint; export declare const abs: (arg: bigint) => bigint;