UNPKG

exactnumber

Version:

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

5 lines (4 loc) 402 B
import type { ExactNumberType } from '../types'; export declare const nthroot: (n: number, x: number | bigint | string | ExactNumberType, decimals: number) => ExactNumberType; export declare const sqrt: (x: number | bigint | string | ExactNumberType, decimals: number) => ExactNumberType; export declare const cbrt: (x: number | bigint | string | ExactNumberType, decimals: number) => ExactNumberType;