UNPKG

exactnumber

Version:

Arbitrary-precision decimals. Enables making math calculations with rational numbers, without precision loss.

4 lines (3 loc) 332 B
import type { ExactNumberType } from '../types'; export declare const exp: (x: number | bigint | string | ExactNumberType, decimals: number) => ExactNumberType; export declare const pow: (_base: number | bigint | string | ExactNumberType, _exponent: number | bigint | string | ExactNumberType, decimals: number) => ExactNumberType;