UNPKG

exactnumber

Version:

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

6 lines (5 loc) 512 B
import type { ExactNumberType } from '../types'; export declare const log: (x: number | bigint | string | ExactNumberType, decimals: number) => ExactNumberType; export declare const logn: (n: number, x: number | bigint | string | ExactNumberType, decimals: number) => ExactNumberType; export declare const log2: (x: number | bigint | string | ExactNumberType, decimals: number) => ExactNumberType; export declare const log10: (x: number | bigint | string | ExactNumberType, decimals: number) => ExactNumberType;