UNPKG

exactnumber

Version:

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

13 lines (12 loc) 694 B
import { type ExactNumberType } from '../types'; export declare const PI: (decimals: number) => ExactNumberType; type EvaluationRes = { specialCaseDeg: number | null; quadrant: number; subHalfPiAngle: ExactNumberType | null; }; export declare const evaluateAngle: (x: ExactNumberType, decimals: number) => EvaluationRes; export declare const cos: (_angle: number | bigint | string | ExactNumberType, decimals: number) => ExactNumberType; export declare const sin: (_angle: number | bigint | string | ExactNumberType, decimals: number) => ExactNumberType; export declare const tan: (angle: number | bigint | string | ExactNumberType, decimals: number) => ExactNumberType; export {};